Package net.infonode.docking.properties
Class FloatingWindowProperties
java.lang.Object
net.infonode.properties.propertymap.PropertyMapContainer
net.infonode.docking.properties.FloatingWindowProperties
Properties and property values for floating windows.
- Since:
- IDW 1.4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BooleanProperty
Auto close enabledstatic final PropertyMapProperty
Properties for the componentstatic final PropertyMapGroup
Property group containing all floating window properties.static final PropertyMapProperty
Properties for the shaped panelstatic final BooleanProperty
If true the floating window will be created as a JFrame, otherwise a JDialog will be created. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty property object.FloatingWindowProperties
(FloatingWindowProperties inheritFrom) Creates a property object that inherit values from another property object.Creates a property map containing the map. -
Method Summary
Modifier and TypeMethodDescriptionaddSuperObject
(FloatingWindowProperties properties) Adds a super object from which property values are inherited.boolean
Returns true if the floating window should be automatically closed when it doesn't contain any child window.Gets the component propertiesGets the shaped panel propertiesboolean
Returns true if the floating window should be created as a JFrame, otherwise a JDialog is used.removeSuperObject
(FloatingWindowProperties superObject) Removes a super object.setAutoCloseEnabled
(boolean enabled) Enables/disables if the floating window should be automatically closed when it doesn't contain any child window.setUseFrame
(boolean enabled) Set to true if the floating window should be created as a JFrame, otherwise a JDialog is used.Methods inherited from class net.infonode.properties.propertymap.PropertyMapContainer
getMap
-
Field Details
-
PROPERTIES
Property group containing all floating window properties. -
COMPONENT_PROPERTIES
Properties for the component- See Also:
-
SHAPED_PANEL_PROPERTIES
Properties for the shaped panel- See Also:
-
AUTO_CLOSE_ENABLED
Auto close enabled -
USE_FRAME
If true the floating window will be created as a JFrame, otherwise a JDialog will be created. Note that the value of this property only takes effect when the FloatingWindow is created, it doesn't affect existing FloatingWindows (but this might change in future versions).- Since:
- IDW 1.5.0
-
-
Constructor Details
-
FloatingWindowProperties
public FloatingWindowProperties()Creates an empty property object. -
FloatingWindowProperties
Creates a property map containing the map.- Parameters:
map
- the property map
-
FloatingWindowProperties
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
-
getAutoCloseEnabled
public boolean getAutoCloseEnabled()Returns true if the floating window should be automatically closed when it doesn't contain any child window.- Returns:
- true if auto close is enabled, otherwise false
-
setAutoCloseEnabled
Enables/disables if the floating window should be automatically closed when it doesn't contain any child window.- Parameters:
enabled
- true for auto close, otherwise disabled- Returns:
- this
-
getUseFrame
public boolean getUseFrame()Returns true if the floating window should be created as a JFrame, otherwise a JDialog is used.- Returns:
- true if a JFrame should be used
- Since:
- IDW 1.5.0
-
setUseFrame
Set to true if the floating window should be created as a JFrame, otherwise a JDialog is used. Note that the value of this property only takes effect when the FloatingWindow is created, it doesn't affect existing FloatingWindows (but this might change in future versions).- Parameters:
enabled
- true if a JFrame should be used- Returns:
- this
- Since:
- IDW 1.5.0
-