Package net.infonode.docking.properties
Class WindowBarProperties
java.lang.Object
net.infonode.properties.propertymap.PropertyMapContainer
net.infonode.docking.properties.WindowBarProperties
Properties and property values for window bars.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PropertyMapProperty
The window bar component property values.static final IntegerProperty
Inside this distance from the content panel edge the user can resize the content panel.static final BooleanProperty
When enabled causes the windows to change size continuously while dragging the split window divider.static final ColorProperty
The drag indicator color.static final IntegerProperty
The minimum width of the window bar.static final PropertyMapGroup
Property group containing all window bar properties.static final PropertyMapProperty
Properties for the tab window used by this window bar. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty property object.WindowBarProperties
(WindowBarProperties inheritFrom) Creates a property object that inherit values from another property object.Creates a property object containing the map. -
Method Summary
Modifier and TypeMethodDescriptionaddSuperObject
(WindowBarProperties properties) Adds a super object from which property values are inherited.static WindowBarProperties
createDefault
(Direction location) Creates a property object which inherits the default property values.Returns the property values for the window bar component.int
Returns the distance from the content panel edge which inside the user can resize the content panel.boolean
Returns true if continuous layout is enabled.Returns the resizer's drag indicator color.int
Returns the minimum width of the window bar.Returns the tab window property values.Deprecated.removeSuperObject
(WindowBarProperties superObject) Removes a super object.setContentPanelEdgeResizeEdgeDistance
(int width) Sets the distance from the content panel edge which inside the user can resize the content panel.setContinuousLayoutEnabled
(boolean enabled) Enables/disables continuous layout.setDragIndicatorColor
(Color color) Sets the resizer's drag indicator color.setMinimumWidth
(int width) Sets the minimum width of the window bar.Methods inherited from class net.infonode.properties.propertymap.PropertyMapContainer
getMap
-
Field Details
-
PROPERTIES
Property group containing all window bar properties. -
COMPONENT_PROPERTIES
The window bar component property values. -
CONTENT_PANEL_EDGE_RESIZE_DISTANCE
Inside this distance from the content panel edge the user can resize the content panel. -
MINIMUM_WIDTH
The minimum width of the window bar. If greater than 0, the window bar will always be visible and the user can drag windows to it. -
CONTINUOUS_LAYOUT_ENABLED
When enabled causes the windows to change size continuously while dragging the split window divider.- Since:
- IDW 1.4.0
-
DRAG_INDICATOR_COLOR
The drag indicator color.- Since:
- IDW 1.4.0
-
TAB_WINDOW_PROPERTIES
Properties for the tab window used by this window bar.
-
-
Constructor Details
-
WindowBarProperties
public WindowBarProperties()Creates an empty property object. -
WindowBarProperties
Creates a property object containing the map.- Parameters:
map
- the property map
-
WindowBarProperties
Creates a property object that inherit values from another property object.- Parameters:
inheritFrom
- the object from which to inherit property values
-
-
Method Details
-
createDefault
Creates a property object which inherits the default property values.- Parameters:
location
- the location of the window bar- Returns:
- a property object which inherits the default property values
-
addSuperObject
Adds a super object from which property values are inherited.- Parameters:
properties
- the object from which to inherit property values- Returns:
- this
-
removeSuperObject
Deprecated.UseremoveSuperObject(WindowBarProperties)
instead.Removes the last added super object.- Returns:
- this
- Since:
- IDW 1.1.0
-
removeSuperObject
Removes a super object.- Parameters:
superObject
- the super object to remove- Returns:
- this
- Since:
- IDW 1.3.0
-
getContentPanelEdgeResizeDistance
public int getContentPanelEdgeResizeDistance()Returns the distance from the content panel edge which inside the user can resize the content panel.- Returns:
- the distance from the content panel edge which inside the user can resize the content panel
-
setContentPanelEdgeResizeEdgeDistance
Sets the distance from the content panel edge which inside the user can resize the content panel.- Parameters:
width
- the distance from the content panel edge which inside the user can resize the content panel- Returns:
- this
-
getMinimumWidth
public int getMinimumWidth()Returns the minimum width of the window bar.- Returns:
- the minimum width of the window bar
-
setMinimumWidth
Sets the minimum width of the window bar.- Parameters:
width
- the minimum width of the window bar- Returns:
- this
-
getTabWindowProperties
Returns the tab window property values.- Returns:
- the tab window property values
-
getComponentProperties
Returns the property values for the window bar component.- Returns:
- the property values for the window bar component
-
setDragIndicatorColor
Sets the resizer's drag indicator color.- Parameters:
color
- the color for the drag indicator- Returns:
- this
- Since:
- IDW 1.4.0
-
getDragIndicatorColor
Returns the resizer's drag indicator color.- Returns:
- the drag indicator color
- Since:
- IDW 1.4.0
-
getContinuousLayoutEnabled
public boolean getContinuousLayoutEnabled()Returns true if continuous layout is enabled.- Returns:
- true if continuous layout is enabled
- Since:
- IDW 1.4.0
-
setContinuousLayoutEnabled
Enables/disables continuous layout.- Parameters:
enabled
- if true continuous layout is enabled- Returns:
- this
- Since:
- IDW 1.4.0
-
removeSuperObject(WindowBarProperties)
instead.