net.infonode.docking.properties

Class ViewTitleBarStateProperties

public class ViewTitleBarStateProperties extends PropertyMapContainer

Properties and property values for a view title bar state.

Since: IDW 1.4.0

Version: $Revision: 1.6 $

Author: johan

Field Summary
static IntegerPropertyBUTTON_SPACING
Button spacing
static PropertyMapPropertyCLOSE_BUTTON_PROPERTIES
The close button property values.
static PropertyMapPropertyCOMPONENT_PROPERTIES
Properties for the component
static PropertyMapPropertyDOCK_BUTTON_PROPERTIES
The dock button property values.
static IconPropertyICON
The title bar icon.
static IntegerPropertyICON_TEXT_GAP
Icon text gap property
static AlignmentPropertyICON_TEXT_HORIZONTAL_ALIGNMENT
Icon Text Horizontal alignment property
static BooleanPropertyICON_VISIBLE
Icon visible property
static PropertyMapPropertyMAXIMIZE_BUTTON_PROPERTIES
The minimize button property values.
static PropertyMapPropertyMINIMIZE_BUTTON_PROPERTIES
The minimize button property values.
static PropertyMapGroupPROPERTIES
Property group containing all view title bar state properties.
static PropertyMapPropertyRESTORE_BUTTON_PROPERTIES
The restore button property values.
static PropertyMapPropertySHAPED_PANEL_PROPERTIES
Properties for the shaped panel
static StringPropertyTITLE
The title bar title.
static BooleanPropertyTITLE_VISIBLE
Title visible property
static PropertyMapPropertyUNDOCK_BUTTON_PROPERTIES
The undock button property values.
Constructor Summary
ViewTitleBarStateProperties()
Creates an empty property object.
ViewTitleBarStateProperties(PropertyMap map)
Creates a property object containing the map.
ViewTitleBarStateProperties(ViewTitleBarStateProperties inheritFrom)
Creates a property object that inherit values from another property object.
Method Summary
ViewTitleBarStatePropertiesaddSuperObject(ViewTitleBarStateProperties properties)
Adds a super object from which property values are inherited.
intgetButtonSpacing()
Returns the spacing between the buttons on the title bar
WindowTabButtonPropertiesgetCloseButtonProperties()
Returns the close button property values.
ComponentPropertiesgetComponentProperties()
Gets the component properties
WindowTabButtonPropertiesgetDockButtonProperties()
Returns the dock button property values.
IcongetIcon()
Returns the view icon.
intgetIconTextGap()
Returns the gap between the icon and the title in the title bar
AlignmentgetIconTextHorizontalAlignment()
Gets the text's and icon's horizontal alignment
booleangetIconVisible()
Returns if the icon should be visible or not
WindowTabButtonPropertiesgetMaximizeButtonProperties()
Returns the maximize button property values.
WindowTabButtonPropertiesgetMinimizeButtonProperties()
Returns the minimize button property values.
WindowTabButtonPropertiesgetRestoreButtonProperties()
Returns the restore button property values.
ShapedPanelPropertiesgetShapedPanelProperties()
Gets the shaped panel properties
StringgetTitle()
Returns the view title.
booleangetTitleVisible()
Returns if the title should be visible or not
WindowTabButtonPropertiesgetUndockButtonProperties()
Returns the undock button property values.
ViewTitleBarStatePropertiesremoveSuperObject(ViewTitleBarStateProperties superObject)
Removes a super object.
ViewTitleBarStatePropertiessetButtonSpacing(int spacing)
Sets the spacing between the buttons on the title bar
ViewTitleBarStatePropertiessetIcon(Icon icon)
Sets the icon.
ViewTitleBarStatePropertiessetIconTextGap(int gap)
Sets the gap between the icon and the title in the title bar
ViewTitleBarStatePropertiessetIconTextHorizontalAlignment(Alignment alignment)
Sets the text's and icon's horizontal alignment
ViewTitleBarStatePropertiessetIconVisible(boolean visible)
Sets if the icon should be visible or not
ViewTitleBarStatePropertiessetTitle(String title)
Sets the title.
ViewTitleBarStatePropertiessetTitleVisible(boolean visible)
Sets if the title should be visible or not

Field Detail

BUTTON_SPACING

public static final IntegerProperty BUTTON_SPACING
Button spacing

See Also: ViewTitleBarStateProperties ViewTitleBarStateProperties

CLOSE_BUTTON_PROPERTIES

public static final PropertyMapProperty CLOSE_BUTTON_PROPERTIES
The close button property values.

See Also: ViewTitleBarStateProperties

COMPONENT_PROPERTIES

public static final PropertyMapProperty COMPONENT_PROPERTIES
Properties for the component

See Also: ViewTitleBarStateProperties

DOCK_BUTTON_PROPERTIES

public static final PropertyMapProperty DOCK_BUTTON_PROPERTIES
The dock button property values.

See Also: ViewTitleBarStateProperties

ICON

public static final IconProperty ICON
The title bar icon.

ICON_TEXT_GAP

public static final IntegerProperty ICON_TEXT_GAP
Icon text gap property

See Also: ViewTitleBarStateProperties ViewTitleBarStateProperties

ICON_TEXT_HORIZONTAL_ALIGNMENT

public static final AlignmentProperty ICON_TEXT_HORIZONTAL_ALIGNMENT
Icon Text Horizontal alignment property

See Also: ViewTitleBarStateProperties ViewTitleBarStateProperties

ICON_VISIBLE

public static final BooleanProperty ICON_VISIBLE
Icon visible property

See Also: ViewTitleBarStateProperties ViewTitleBarStateProperties

MAXIMIZE_BUTTON_PROPERTIES

public static final PropertyMapProperty MAXIMIZE_BUTTON_PROPERTIES
The minimize button property values.

See Also: ViewTitleBarStateProperties

MINIMIZE_BUTTON_PROPERTIES

public static final PropertyMapProperty MINIMIZE_BUTTON_PROPERTIES
The minimize button property values.

See Also: ViewTitleBarStateProperties

PROPERTIES

public static final PropertyMapGroup PROPERTIES
Property group containing all view title bar state properties.

RESTORE_BUTTON_PROPERTIES

public static final PropertyMapProperty RESTORE_BUTTON_PROPERTIES
The restore button property values.

See Also: ViewTitleBarStateProperties

SHAPED_PANEL_PROPERTIES

public static final PropertyMapProperty SHAPED_PANEL_PROPERTIES
Properties for the shaped panel

See Also: ViewTitleBarStateProperties

TITLE

public static final StringProperty TITLE
The title bar title.

TITLE_VISIBLE

public static final BooleanProperty TITLE_VISIBLE
Title visible property

See Also: ViewTitleBarStateProperties ViewTitleBarStateProperties

UNDOCK_BUTTON_PROPERTIES

public static final PropertyMapProperty UNDOCK_BUTTON_PROPERTIES
The undock button property values.

See Also: ViewTitleBarStateProperties

Constructor Detail

ViewTitleBarStateProperties

public ViewTitleBarStateProperties()
Creates an empty property object.

ViewTitleBarStateProperties

public ViewTitleBarStateProperties(PropertyMap map)
Creates a property object containing the map.

Parameters: map the property map

ViewTitleBarStateProperties

public ViewTitleBarStateProperties(ViewTitleBarStateProperties inheritFrom)
Creates a property object that inherit values from another property object.

Parameters: inheritFrom the object from which to inherit property values

Method Detail

addSuperObject

public ViewTitleBarStateProperties addSuperObject(ViewTitleBarStateProperties properties)
Adds a super object from which property values are inherited.

Parameters: properties the object from which to inherit property values

Returns: this

getButtonSpacing

public int getButtonSpacing()
Returns the spacing between the buttons on the title bar

Returns: spacing in pixels

getCloseButtonProperties

public WindowTabButtonProperties getCloseButtonProperties()
Returns the close button property values.

Returns: the close button property values

getComponentProperties

public ComponentProperties getComponentProperties()
Gets the component properties

Returns: component properties

getDockButtonProperties

public WindowTabButtonProperties getDockButtonProperties()
Returns the dock button property values.

Returns: the dock button property values

getIcon

public Icon getIcon()
Returns the view icon.

Returns: the view icon

getIconTextGap

public int getIconTextGap()
Returns the gap between the icon and the title in the title bar

Returns: gap in pixels

getIconTextHorizontalAlignment

public Alignment getIconTextHorizontalAlignment()
Gets the text's and icon's horizontal alignment

Returns: text and icon alignment

getIconVisible

public boolean getIconVisible()
Returns if the icon should be visible or not

Returns: True if visible, otherwise false

getMaximizeButtonProperties

public WindowTabButtonProperties getMaximizeButtonProperties()
Returns the maximize button property values.

Returns: the maximize button property values

getMinimizeButtonProperties

public WindowTabButtonProperties getMinimizeButtonProperties()
Returns the minimize button property values.

Returns: the minimize button property values

getRestoreButtonProperties

public WindowTabButtonProperties getRestoreButtonProperties()
Returns the restore button property values.

Returns: the restore button property values

getShapedPanelProperties

public ShapedPanelProperties getShapedPanelProperties()
Gets the shaped panel properties

Returns: shaped panel properties

getTitle

public String getTitle()
Returns the view title.

Returns: the view title

getTitleVisible

public boolean getTitleVisible()
Returns if the title should be visible or not

Returns: True if visible, otherwise false

getUndockButtonProperties

public WindowTabButtonProperties getUndockButtonProperties()
Returns the undock button property values.

Returns: the undock button property values

removeSuperObject

public ViewTitleBarStateProperties removeSuperObject(ViewTitleBarStateProperties superObject)
Removes a super object.

Parameters: superObject the super object to remove

Returns: this

setButtonSpacing

public ViewTitleBarStateProperties setButtonSpacing(int spacing)
Sets the spacing between the buttons on the title bar

Parameters: spacing spacing in pixels

Returns: this

setIcon

public ViewTitleBarStateProperties setIcon(Icon icon)
Sets the icon.

Parameters: icon the icon

Returns: this

setIconTextGap

public ViewTitleBarStateProperties setIconTextGap(int gap)
Sets the gap between the icon and the title in the title bar

Parameters: gap gap in pixels

Returns: this

setIconTextHorizontalAlignment

public ViewTitleBarStateProperties setIconTextHorizontalAlignment(Alignment alignment)
Sets the text's and icon's horizontal alignment

Parameters: alignment text and icon alignment

Returns: this

setIconVisible

public ViewTitleBarStateProperties setIconVisible(boolean visible)
Sets if the icon should be visible or not

Parameters: visible True for visible, otherwise false

Returns: this

setTitle

public ViewTitleBarStateProperties setTitle(String title)
Sets the title.

Parameters: title the title

Returns: this

setTitleVisible

public ViewTitleBarStateProperties setTitleVisible(boolean visible)
Sets if the title should be visible or not

Parameters: visible True for visible, otherwise false

Returns: this