Package net.infonode.docking.properties
Class ViewTitleBarStateProperties
- java.lang.Object
-
- net.infonode.properties.propertymap.PropertyMapContainer
-
- net.infonode.docking.properties.ViewTitleBarStateProperties
-
public class ViewTitleBarStateProperties extends PropertyMapContainer
Properties and property values for a view title bar state.- Since:
- IDW 1.4.0
-
-
Field Summary
Fields Modifier and Type Field Description static IntegerPropertyBUTTON_SPACINGButton spacingstatic PropertyMapPropertyCLOSE_BUTTON_PROPERTIESThe close button property values.static PropertyMapPropertyCOMPONENT_PROPERTIESProperties for the componentstatic PropertyMapPropertyDOCK_BUTTON_PROPERTIESThe dock button property values.static IconPropertyICONThe title bar icon.static IntegerPropertyICON_TEXT_GAPIcon text gap propertystatic AlignmentPropertyICON_TEXT_HORIZONTAL_ALIGNMENTIcon Text Horizontal alignment propertystatic BooleanPropertyICON_VISIBLEIcon visible propertystatic PropertyMapPropertyMAXIMIZE_BUTTON_PROPERTIESThe minimize button property values.static PropertyMapPropertyMINIMIZE_BUTTON_PROPERTIESThe minimize button property values.static PropertyMapGroupPROPERTIESProperty group containing all view title bar state properties.static PropertyMapPropertyRESTORE_BUTTON_PROPERTIESThe restore button property values.static PropertyMapPropertySHAPED_PANEL_PROPERTIESProperties for the shaped panelstatic StringPropertyTITLEThe title bar title.static BooleanPropertyTITLE_VISIBLETitle visible propertystatic PropertyMapPropertyUNDOCK_BUTTON_PROPERTIESThe undock button property values.
-
Constructor Summary
Constructors Constructor Description ViewTitleBarStateProperties()Creates an empty property object.ViewTitleBarStateProperties(ViewTitleBarStateProperties inheritFrom)Creates a property object that inherit values from another property object.ViewTitleBarStateProperties(PropertyMap map)Creates a property object containing the map.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ViewTitleBarStatePropertiesaddSuperObject(ViewTitleBarStateProperties properties)Adds a super object from which property values are inherited.intgetButtonSpacing()Returns the spacing between the buttons on the title barWindowTabButtonPropertiesgetCloseButtonProperties()Returns the close button property values.ComponentPropertiesgetComponentProperties()Gets the component propertiesWindowTabButtonPropertiesgetDockButtonProperties()Returns the dock button property values.javax.swing.IcongetIcon()Returns the view icon.intgetIconTextGap()Returns the gap between the icon and the title in the title barAlignmentgetIconTextHorizontalAlignment()Gets the text's and icon's horizontal alignmentbooleangetIconVisible()Returns if the icon should be visible or notWindowTabButtonPropertiesgetMaximizeButtonProperties()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 propertiesjava.lang.StringgetTitle()Returns the view title.booleangetTitleVisible()Returns if the title should be visible or notWindowTabButtonPropertiesgetUndockButtonProperties()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 barViewTitleBarStatePropertiessetIcon(javax.swing.Icon icon)Sets the icon.ViewTitleBarStatePropertiessetIconTextGap(int gap)Sets the gap between the icon and the title in the title barViewTitleBarStatePropertiessetIconTextHorizontalAlignment(Alignment alignment)Sets the text's and icon's horizontal alignmentViewTitleBarStatePropertiessetIconVisible(boolean visible)Sets if the icon should be visible or notViewTitleBarStatePropertiessetTitle(java.lang.String title)Sets the title.ViewTitleBarStatePropertiessetTitleVisible(boolean visible)Sets if the title should be visible or not-
Methods inherited from class net.infonode.properties.propertymap.PropertyMapContainer
getMap
-
-
-
-
Field Detail
-
PROPERTIES
public static final PropertyMapGroup PROPERTIES
Property group containing all view title bar state properties.
-
COMPONENT_PROPERTIES
public static final PropertyMapProperty COMPONENT_PROPERTIES
Properties for the component- See Also:
getComponentProperties()
-
SHAPED_PANEL_PROPERTIES
public static final PropertyMapProperty SHAPED_PANEL_PROPERTIES
Properties for the shaped panel- See Also:
getShapedPanelProperties()
-
MINIMIZE_BUTTON_PROPERTIES
public static final PropertyMapProperty MINIMIZE_BUTTON_PROPERTIES
The minimize button property values.- See Also:
getMinimizeButtonProperties()
-
MAXIMIZE_BUTTON_PROPERTIES
public static final PropertyMapProperty MAXIMIZE_BUTTON_PROPERTIES
The minimize button property values.- See Also:
getMinimizeButtonProperties()
-
RESTORE_BUTTON_PROPERTIES
public static final PropertyMapProperty RESTORE_BUTTON_PROPERTIES
The restore button property values.- See Also:
getRestoreButtonProperties()
-
CLOSE_BUTTON_PROPERTIES
public static final PropertyMapProperty CLOSE_BUTTON_PROPERTIES
The close button property values.- See Also:
getCloseButtonProperties()
-
UNDOCK_BUTTON_PROPERTIES
public static final PropertyMapProperty UNDOCK_BUTTON_PROPERTIES
The undock button property values.- See Also:
getUndockButtonProperties()
-
DOCK_BUTTON_PROPERTIES
public static final PropertyMapProperty DOCK_BUTTON_PROPERTIES
The dock button property values.- See Also:
getDockButtonProperties()
-
TITLE
public static final StringProperty TITLE
The title bar title.
-
TITLE_VISIBLE
public static final BooleanProperty TITLE_VISIBLE
Title visible property- See Also:
setTitleVisible(boolean),getTitleVisible()
-
ICON
public static final IconProperty ICON
The title bar icon.
-
ICON_VISIBLE
public static final BooleanProperty ICON_VISIBLE
Icon visible property- See Also:
setIconVisible(boolean),getIconVisible()
-
ICON_TEXT_GAP
public static final IntegerProperty ICON_TEXT_GAP
Icon text gap property- See Also:
setIconTextGap(int),getIconTextGap()
-
ICON_TEXT_HORIZONTAL_ALIGNMENT
public static final AlignmentProperty ICON_TEXT_HORIZONTAL_ALIGNMENT
Icon Text Horizontal alignment property
-
BUTTON_SPACING
public static final IntegerProperty BUTTON_SPACING
Button spacing- See Also:
setButtonSpacing(int),getButtonSpacing()
-
-
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
-
removeSuperObject
public ViewTitleBarStateProperties removeSuperObject(ViewTitleBarStateProperties superObject)
Removes a super object.- Parameters:
superObject- the super object to remove- Returns:
- this
-
getComponentProperties
public ComponentProperties getComponentProperties()
Gets the component properties- Returns:
- component properties
-
getShapedPanelProperties
public ShapedPanelProperties getShapedPanelProperties()
Gets the shaped panel properties- Returns:
- shaped panel properties
-
getMinimizeButtonProperties
public WindowTabButtonProperties getMinimizeButtonProperties()
Returns the minimize button property values.- Returns:
- the minimize button property values
-
getMaximizeButtonProperties
public WindowTabButtonProperties getMaximizeButtonProperties()
Returns the maximize button property values.- Returns:
- the maximize button property values
-
getRestoreButtonProperties
public WindowTabButtonProperties getRestoreButtonProperties()
Returns the restore button property values.- Returns:
- the restore button property values
-
getCloseButtonProperties
public WindowTabButtonProperties getCloseButtonProperties()
Returns the close button property values.- Returns:
- the close button property values
-
getUndockButtonProperties
public WindowTabButtonProperties getUndockButtonProperties()
Returns the undock button property values.- Returns:
- the undock button property values
-
getDockButtonProperties
public WindowTabButtonProperties getDockButtonProperties()
Returns the dock button property values.- Returns:
- the dock button property values
-
setButtonSpacing
public ViewTitleBarStateProperties setButtonSpacing(int spacing)
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
public ViewTitleBarStateProperties setTitle(java.lang.String title)
Sets the title.- Parameters:
title- the title- Returns:
- this
-
getTitle
public java.lang.String getTitle()
Returns the view title.- Returns:
- the view title
-
setTitleVisible
public ViewTitleBarStateProperties setTitleVisible(boolean visible)
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
public ViewTitleBarStateProperties setIcon(javax.swing.Icon icon)
Sets the icon.- Parameters:
icon- the icon- Returns:
- this
-
getIcon
public javax.swing.Icon getIcon()
Returns the view icon.- Returns:
- the view icon
-
setIconVisible
public ViewTitleBarStateProperties setIconVisible(boolean visible)
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
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
-
getIconTextGap
public int getIconTextGap()
Returns the gap between the icon and the title in the title bar- Returns:
- gap in pixels
-
setIconTextHorizontalAlignment
public ViewTitleBarStateProperties setIconTextHorizontalAlignment(Alignment alignment)
Sets the text's and icon's horizontal alignment- Parameters:
alignment- text and icon alignment- Returns:
- this
-
getIconTextHorizontalAlignment
public Alignment getIconTextHorizontalAlignment()
Gets the text's and icon's horizontal alignment- Returns:
- text and icon alignment
-
-