public class WindowBarProperties extends PropertyMapContainer
Modifier and Type | Field and Description |
---|---|
static PropertyMapProperty |
COMPONENT_PROPERTIES
The window bar component property values.
|
static IntegerProperty |
CONTENT_PANEL_EDGE_RESIZE_DISTANCE
Inside this distance from the content panel edge the user can resize the content panel.
|
static BooleanProperty |
CONTINUOUS_LAYOUT_ENABLED
When enabled causes the windows to change size continuously while dragging the split window divider.
|
static ColorProperty |
DRAG_INDICATOR_COLOR
The drag indicator color.
|
static IntegerProperty |
MINIMUM_WIDTH
The minimum width of the window bar.
|
static PropertyMapGroup |
PROPERTIES
Property group containing all window bar properties.
|
static PropertyMapProperty |
TAB_WINDOW_PROPERTIES
Properties for the tab window used by this window bar.
|
Constructor and Description |
---|
WindowBarProperties()
Creates an empty property object.
|
WindowBarProperties(PropertyMap map)
Creates a property object containing the map.
|
WindowBarProperties(WindowBarProperties inheritFrom)
Creates a property object that inherit values from another property object.
|
Modifier and Type | Method and Description |
---|---|
WindowBarProperties |
addSuperObject(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.
|
ComponentProperties |
getComponentProperties()
Returns the property values for the window bar component.
|
int |
getContentPanelEdgeResizeDistance()
Returns the distance from the content panel edge which inside the user can resize the content panel.
|
boolean |
getContinuousLayoutEnabled()
Returns true if continuous layout is enabled.
|
java.awt.Color |
getDragIndicatorColor()
Returns the resizer's drag indicator color.
|
int |
getMinimumWidth()
Returns the minimum width of the window bar.
|
TabWindowProperties |
getTabWindowProperties()
Returns the tab window property values.
|
WindowBarProperties |
removeSuperObject()
Deprecated.
Use
removeSuperObject(WindowBarProperties) instead. |
WindowBarProperties |
removeSuperObject(WindowBarProperties superObject)
Removes a super object.
|
WindowBarProperties |
setContentPanelEdgeResizeEdgeDistance(int width)
Sets the distance from the content panel edge which inside the user can resize the content panel.
|
WindowBarProperties |
setContinuousLayoutEnabled(boolean enabled)
Enables/disables continuous layout.
|
WindowBarProperties |
setDragIndicatorColor(java.awt.Color color)
Sets the resizer's drag indicator color.
|
WindowBarProperties |
setMinimumWidth(int width)
Sets the minimum width of the window bar.
|
getMap
public static final PropertyMapGroup PROPERTIES
public static final PropertyMapProperty COMPONENT_PROPERTIES
public static final IntegerProperty CONTENT_PANEL_EDGE_RESIZE_DISTANCE
public static final IntegerProperty MINIMUM_WIDTH
public static final BooleanProperty CONTINUOUS_LAYOUT_ENABLED
public static final ColorProperty DRAG_INDICATOR_COLOR
public static final PropertyMapProperty TAB_WINDOW_PROPERTIES
public WindowBarProperties()
public WindowBarProperties(PropertyMap map)
map
- the property mappublic WindowBarProperties(WindowBarProperties inheritFrom)
inheritFrom
- the object from which to inherit property valuespublic static WindowBarProperties createDefault(Direction location)
location
- the location of the window barpublic WindowBarProperties addSuperObject(WindowBarProperties properties)
properties
- the object from which to inherit property valuespublic WindowBarProperties removeSuperObject()
removeSuperObject(WindowBarProperties)
instead.public WindowBarProperties removeSuperObject(WindowBarProperties superObject)
superObject
- the super object to removepublic int getContentPanelEdgeResizeDistance()
public WindowBarProperties setContentPanelEdgeResizeEdgeDistance(int width)
width
- the distance from the content panel edge which inside the user can resize the content panelpublic int getMinimumWidth()
public WindowBarProperties setMinimumWidth(int width)
width
- the minimum width of the window barpublic TabWindowProperties getTabWindowProperties()
public ComponentProperties getComponentProperties()
public WindowBarProperties setDragIndicatorColor(java.awt.Color color)
color
- the color for the drag indicatorpublic java.awt.Color getDragIndicatorColor()
public boolean getContinuousLayoutEnabled()
public WindowBarProperties setContinuousLayoutEnabled(boolean enabled)
enabled
- if true continuous layout is enabled