public class FloatingWindowProperties extends PropertyMapContainer
Modifier and Type | Field and Description |
---|---|
static BooleanProperty |
AUTO_CLOSE_ENABLED
Auto close enabled
|
static PropertyMapProperty |
COMPONENT_PROPERTIES
Properties for the component
|
static PropertyMapGroup |
PROPERTIES
Property group containing all floating window properties.
|
static PropertyMapProperty |
SHAPED_PANEL_PROPERTIES
Properties for the shaped panel
|
static BooleanProperty |
USE_FRAME
If true the floating window will be created as a JFrame, otherwise a JDialog will be created.
|
Constructor and Description |
---|
FloatingWindowProperties()
Creates an empty property object.
|
FloatingWindowProperties(FloatingWindowProperties inheritFrom)
Creates a property object that inherit values from another property object.
|
FloatingWindowProperties(PropertyMap map)
Creates a property map containing the map.
|
Modifier and Type | Method and Description |
---|---|
FloatingWindowProperties |
addSuperObject(FloatingWindowProperties properties)
Adds a super object from which property values are inherited.
|
boolean |
getAutoCloseEnabled()
Returns true if the floating window should be automatically closed when it doesn't
contain any child window.
|
ComponentProperties |
getComponentProperties()
Gets the component properties
|
ShapedPanelProperties |
getShapedPanelProperties()
Gets the shaped panel properties
|
boolean |
getUseFrame()
Returns true if the floating window should be created as a JFrame, otherwise a JDialog is used.
|
FloatingWindowProperties |
removeSuperObject(FloatingWindowProperties superObject)
Removes a super object.
|
FloatingWindowProperties |
setAutoCloseEnabled(boolean enabled)
Enables/disables if the floating window should be automatically closed when it doesn't contain
any child window.
|
FloatingWindowProperties |
setUseFrame(boolean enabled)
Set to true if the floating window should be created as a JFrame, otherwise a JDialog is used.
|
getMap
public static final PropertyMapGroup PROPERTIES
public static final PropertyMapProperty COMPONENT_PROPERTIES
getComponentProperties()
public static final PropertyMapProperty SHAPED_PANEL_PROPERTIES
getShapedPanelProperties()
public static final BooleanProperty AUTO_CLOSE_ENABLED
public static final BooleanProperty USE_FRAME
public FloatingWindowProperties()
public FloatingWindowProperties(PropertyMap map)
map
- the property mappublic FloatingWindowProperties(FloatingWindowProperties inheritFrom)
inheritFrom
- the object from which to inherit property valuespublic FloatingWindowProperties addSuperObject(FloatingWindowProperties properties)
properties
- the object from which to inherit property valuespublic FloatingWindowProperties removeSuperObject(FloatingWindowProperties superObject)
superObject
- the super object to removepublic ComponentProperties getComponentProperties()
public ShapedPanelProperties getShapedPanelProperties()
public boolean getAutoCloseEnabled()
public FloatingWindowProperties setAutoCloseEnabled(boolean enabled)
enabled
- true for auto close, otherwise disabledpublic boolean getUseFrame()
public FloatingWindowProperties setUseFrame(boolean enabled)
enabled
- true if a JFrame should be used