public class ViewProperties extends PropertyMapContainer
Modifier and Type | Field and Description |
---|---|
static BooleanProperty |
ALWAYS_SHOW_TITLE
If true the view will always be placed in a TabWindow so that it's title is shown.
|
static IconProperty |
ICON
The view icon.
|
static PropertyMapGroup |
PROPERTIES
Property group containing all view properties.
|
static StringProperty |
TITLE
The view title.
|
static PropertyMapProperty |
VIEW_TITLE_BAR_PROPERTIES
Properties for the view title bar
|
Constructor and Description |
---|
ViewProperties()
Creates an empty property object.
|
ViewProperties(PropertyMap map)
Creates a property object containing the map.
|
ViewProperties(ViewProperties inheritFrom)
Creates a property object that inherit values from another property object.
|
Modifier and Type | Method and Description |
---|---|
ViewProperties |
addSuperObject(ViewProperties properties)
Adds a super object from which property values are inherited.
|
boolean |
getAlwaysShowTitle()
Returns true if the view shows it's title even though it's not in a tabbed panel with other windows.
|
javax.swing.Icon |
getIcon()
Returns the view icon.
|
java.lang.String |
getTitle()
Returns the view title.
|
ViewTitleBarProperties |
getViewTitleBarProperties()
Returns the property values for the title bar in the view
|
ViewProperties |
removeSuperObject()
Deprecated.
Use
removeSuperObject(ViewProperties) instead. |
ViewProperties |
removeSuperObject(ViewProperties superObject)
Removes a super object.
|
ViewProperties |
setAlwaysShowTitle(boolean showTitle)
Set to true the view should always be placed in a TabWindow so that it's title is shown.
|
ViewProperties |
setIcon(javax.swing.Icon icon)
Sets the view icon.
|
ViewProperties |
setTitle(java.lang.String title)
Sets the view title.
|
getMap
public static final PropertyMapGroup PROPERTIES
public static final PropertyMapProperty VIEW_TITLE_BAR_PROPERTIES
getViewTitleBarProperties()
public static final BooleanProperty ALWAYS_SHOW_TITLE
public static final StringProperty TITLE
public static final IconProperty ICON
public ViewProperties()
public ViewProperties(PropertyMap map)
map
- the property mappublic ViewProperties(ViewProperties inheritFrom)
inheritFrom
- the object from which to inherit property valuespublic ViewProperties addSuperObject(ViewProperties properties)
properties
- the object from which to inherit property valuespublic ViewProperties removeSuperObject()
removeSuperObject(ViewProperties)
instead.public ViewProperties removeSuperObject(ViewProperties superObject)
superObject
- the super object to removepublic ViewTitleBarProperties getViewTitleBarProperties()
public boolean getAlwaysShowTitle()
public ViewProperties setAlwaysShowTitle(boolean showTitle)
showTitle
- true the view should always be placed in a TabWindow so that it's title is shownpublic ViewProperties setTitle(java.lang.String title)
title
- the view titlepublic ViewProperties setIcon(javax.swing.Icon icon)
icon
- the view iconpublic java.lang.String getTitle()
public javax.swing.Icon getIcon()