Control for a simple image browser.
The browser can have one or two navigation bars (with 4 buttons allowing to go back and forward,
and to the first and last images). It can also have a caption textbox, which can be editable.
A thumbnails panel is also provided with the browser. The layout is fully controlled by css.
It is designed to allow almost every aspect of the browser to be customized. However typical defaults
are provided so in a simple case it can be used "out-of-the-box" (see the example).
QImageBrowserBase is the abstract class that you may want to subclass if you need to customize
some functionality (such us the source of the images or how to load/save the captions). See the comments in
this class for details about how it can be customized. A concrete implementation called QImageBrowser is also
provided, which loads the images from a directory.
QImageBrowserNav represents the simple 4 button navigation panel, it has getters and setters for all the
buttons, so you can replace the default buttons by anything you'd like (such as image buttons).
QImageBrowserThumbnails represents the tumbnails navigation panel.
Methods summary
public
|
#
__construct( QControl |QForm |QControlBase $objParentObject, string $strControlId = null )
Creates a QControlBase object
This constructor will generally not be used to create a QControlBase object. Instead it is used by the
classes which extend the class. Only the parent object parameter is required. If the option strControlId
parameter is not used, QCubed will generate the id.
Creates a QControlBase object
This constructor will generally not be used to create a QControlBase object. Instead it is used by the
classes which extend the class. Only the parent object parameter is required. If the option strControlId
parameter is not used, QCubed will generate the id.
Parameters
- $objParentObject
- $strControlId
optional id of this Control. In html, this will be set as the value of the id attribute. The id can only
contain alphanumeric characters. If this parameter is not passed, QCubed will generate the id.
Throws
Overrides
|
protected
|
|
public
|
|
public
|
|
public
mixed
|
#
__get( string $strName )
PHP __get magic method implementation
PHP __get magic method implementation
Parameters
- $strName
- Name of the property
Returns
mixed
Throws
Overrides
|
public
mixed
|
#
__set( string $strName, string $mixValue )
PHP __set magic method implementation
PHP __set magic method implementation
Parameters
- $strName
- Property Name
- $mixValue
- Property Value
Returns
mixed
Throws
Overrides
|