Package net.infonode.docking.properties
Class ViewTitleBarStateProperties
java.lang.Object
net.infonode.properties.propertymap.PropertyMapContainer
net.infonode.docking.properties.ViewTitleBarStateProperties
Properties and property values for a view title bar state.
- Since:
- IDW 1.4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IntegerProperty
Button spacingstatic final PropertyMapProperty
The close button property values.static final PropertyMapProperty
Properties for the componentstatic final PropertyMapProperty
The dock button property values.static final IconProperty
The title bar icon.static final IntegerProperty
Icon text gap propertystatic final AlignmentProperty
Icon Text Horizontal alignment propertystatic final BooleanProperty
Icon visible propertystatic final PropertyMapProperty
The minimize button property values.static final PropertyMapProperty
The minimize button property values.static final PropertyMapGroup
Property group containing all view title bar state properties.static final PropertyMapProperty
The restore button property values.static final PropertyMapProperty
Properties for the shaped panelstatic final StringProperty
The title bar title.static final BooleanProperty
Title visible propertystatic final PropertyMapProperty
The undock button property values. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty property object.ViewTitleBarStateProperties
(ViewTitleBarStateProperties inheritFrom) Creates a property object that inherit values from another property object.Creates a property object containing the map. -
Method Summary
Modifier and TypeMethodDescriptionaddSuperObject
(ViewTitleBarStateProperties properties) Adds a super object from which property values are inherited.int
Returns the spacing between the buttons on the title barReturns the close button property values.Gets the component propertiesReturns the dock button property values.getIcon()
Returns the view icon.int
Returns the gap between the icon and the title in the title barGets the text's and icon's horizontal alignmentboolean
Returns if the icon should be visible or notReturns the maximize button property values.Returns the minimize button property values.Returns the restore button property values.Gets the shaped panel propertiesgetTitle()
Returns the view title.boolean
Returns if the title should be visible or notReturns the undock button property values.removeSuperObject
(ViewTitleBarStateProperties superObject) Removes a super object.setButtonSpacing
(int spacing) Sets the spacing between the buttons on the title barSets the icon.setIconTextGap
(int gap) Sets the gap between the icon and the title in the title barsetIconTextHorizontalAlignment
(Alignment alignment) Sets the text's and icon's horizontal alignmentsetIconVisible
(boolean visible) Sets if the icon should be visible or notSets the title.setTitleVisible
(boolean visible) Sets if the title should be visible or notMethods inherited from class net.infonode.properties.propertymap.PropertyMapContainer
getMap
-
Field Details
-
PROPERTIES
Property group containing all view title bar state properties. -
COMPONENT_PROPERTIES
Properties for the component- See Also:
-
SHAPED_PANEL_PROPERTIES
Properties for the shaped panel- See Also:
-
MINIMIZE_BUTTON_PROPERTIES
The minimize button property values.- See Also:
-
MAXIMIZE_BUTTON_PROPERTIES
The minimize button property values.- See Also:
-
RESTORE_BUTTON_PROPERTIES
The restore button property values.- See Also:
-
CLOSE_BUTTON_PROPERTIES
The close button property values.- See Also:
-
UNDOCK_BUTTON_PROPERTIES
The undock button property values.- See Also:
-
DOCK_BUTTON_PROPERTIES
The dock button property values.- See Also:
-
TITLE
The title bar title. -
TITLE_VISIBLE
Title visible property- See Also:
-
ICON
The title bar icon. -
ICON_VISIBLE
Icon visible property- See Also:
-
ICON_TEXT_GAP
Icon text gap property- See Also:
-
ICON_TEXT_HORIZONTAL_ALIGNMENT
Icon Text Horizontal alignment property- See Also:
-
BUTTON_SPACING
Button spacing- See Also:
-
-
Constructor Details
-
ViewTitleBarStateProperties
public ViewTitleBarStateProperties()Creates an empty property object. -
ViewTitleBarStateProperties
Creates a property object containing the map.- Parameters:
map
- the property map
-
ViewTitleBarStateProperties
Creates a property object that inherit values from another property object.- Parameters:
inheritFrom
- the object from which to inherit property values
-
-
Method Details
-
addSuperObject
Adds a super object from which property values are inherited.- Parameters:
properties
- the object from which to inherit property values- Returns:
- this
-
removeSuperObject
Removes a super object.- Parameters:
superObject
- the super object to remove- Returns:
- this
-
getComponentProperties
Gets the component properties- Returns:
- component properties
-
getShapedPanelProperties
Gets the shaped panel properties- Returns:
- shaped panel properties
-
getMinimizeButtonProperties
Returns the minimize button property values.- Returns:
- the minimize button property values
-
getMaximizeButtonProperties
Returns the maximize button property values.- Returns:
- the maximize button property values
-
getRestoreButtonProperties
Returns the restore button property values.- Returns:
- the restore button property values
-
getCloseButtonProperties
Returns the close button property values.- Returns:
- the close button property values
-
getUndockButtonProperties
Returns the undock button property values.- Returns:
- the undock button property values
-
getDockButtonProperties
Returns the dock button property values.- Returns:
- the dock button property values
-
setButtonSpacing
Sets the spacing between the buttons on the title bar- Parameters:
spacing
- spacing in pixels- Returns:
- this
-
getButtonSpacing
public int getButtonSpacing()Returns the spacing between the buttons on the title bar- Returns:
- spacing in pixels
-
setTitle
Sets the title.- Parameters:
title
- the title- Returns:
- this
-
getTitle
Returns the view title.- Returns:
- the view title
-
setTitleVisible
Sets if the title should be visible or not- Parameters:
visible
- True for visible, otherwise false- Returns:
- this
-
getTitleVisible
public boolean getTitleVisible()Returns if the title should be visible or not- Returns:
- True if visible, otherwise false
-
setIcon
Sets the icon.- Parameters:
icon
- the icon- Returns:
- this
-
getIcon
Returns the view icon.- Returns:
- the view icon
-
setIconVisible
Sets if the icon should be visible or not- Parameters:
visible
- True for visible, otherwise false- Returns:
- this
-
getIconVisible
public boolean getIconVisible()Returns if the icon should be visible or not- Returns:
- True if visible, otherwise false
-
setIconTextGap
Sets the gap between the icon and the title in the title bar- Parameters:
gap
- gap in pixels- Returns:
- this
-
getIconTextGap
public int getIconTextGap()Returns the gap between the icon and the title in the title bar- Returns:
- gap in pixels
-
setIconTextHorizontalAlignment
Sets the text's and icon's horizontal alignment- Parameters:
alignment
- text and icon alignment- Returns:
- this
-
getIconTextHorizontalAlignment
Gets the text's and icon's horizontal alignment- Returns:
- text and icon alignment
-