|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.infonode.properties.propertymap.PropertyMapContainer net.infonode.docking.properties.ViewTitleBarProperties
public class ViewTitleBarProperties
Properties and property values for a view title bar.
Field Summary | |
---|---|
static IntegerProperty |
CONTENT_TITLE_BAR_GAP
Content title bar gap property |
static DirectionProperty |
DIRECTION
Direction property |
static PropertyMapProperty |
FOCUSED_PROPERTIES
Focused properties. |
static HoverListenerProperty |
HOVER_LISTENER
Hover listener property |
static DimensionProviderProperty |
MINIMUM_SIZE_PROVIDER
Title bar minimum size property |
static PropertyMapProperty |
NORMAL_PROPERTIES
Normal properties |
static DirectionProperty |
ORIENTATION
Orientation property |
static PropertyMapGroup |
PROPERTIES
Property group containing all view title bar properties. |
static BooleanProperty |
VISIBLE
Visible property |
Constructor Summary | |
---|---|
ViewTitleBarProperties()
Creates an empty property object. |
|
ViewTitleBarProperties(PropertyMap map)
Creates a property object containing the map. |
|
ViewTitleBarProperties(ViewTitleBarProperties inheritFrom)
Creates a property object that inherit values from another property object. |
Method Summary | |
---|---|
ViewTitleBarProperties |
addSuperObject(ViewTitleBarProperties properties)
Adds a super object from which property values are inherited. |
int |
getContentTitleBarGap()
Returns the gap between the view's content and the title bar |
Direction |
getDirection()
Returns the layout direction The icon, text and components are laid out in a line that will be rotated in the given direction. |
ViewTitleBarStateProperties |
getFocusedProperties()
Returns the property values for the title bar's focused state Note:These properties are added as super object to the normal properties when the view has focus. |
HoverListener |
getHoverListener()
Gets the hover listener that will be triggered when the title bar is hovered by the mouse. |
DimensionProvider |
getMinimumSizeProvider()
Gets the dimension provider for the title bar's minimum size |
ViewTitleBarStateProperties |
getNormalProperties()
Returns the property values for the title bar's normal state |
Direction |
getOrientation()
Returns the orientation i.e. on what side of the view's content the title bar will be placed |
boolean |
getVisible()
Returns if the title bar should be visible or not |
ViewTitleBarProperties |
removeSuperObject(ViewTitleBarProperties superObject)
Removes a super object. |
ViewTitleBarProperties |
setContentTitleBarGap(int gap)
Sets the gap between the view's content and the title bar |
ViewTitleBarProperties |
setDirection(Direction direction)
Sets the layout direction The icon, text and components are laid out in a line that will be rotated in the given direction. |
ViewTitleBarProperties |
setHoverListener(HoverListener listener)
Sets the hover listener that will be triggered when the title bar is hoverd by the mouse. |
ViewTitleBarProperties |
setMinimumSizeProvider(DimensionProvider size)
Sets the title bar's minimum size dimension provider |
ViewTitleBarProperties |
setOrientation(Direction orientation)
Sets the orientation i.e. on what side of the view's content the title bar will be placed |
ViewTitleBarProperties |
setVisible(boolean visible)
Sets if the title bar should be visible or not |
Methods inherited from class net.infonode.properties.propertymap.PropertyMapContainer |
---|
getMap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final PropertyMapGroup PROPERTIES
public static final PropertyMapProperty NORMAL_PROPERTIES
getNormalProperties()
public static final PropertyMapProperty FOCUSED_PROPERTIES
getFocusedProperties()
public static final BooleanProperty VISIBLE
setVisible(boolean)
,
getVisible()
public static final DimensionProviderProperty MINIMUM_SIZE_PROVIDER
setMinimumSizeProvider(DimensionProvider)
,
getMinimumSizeProvider()
public static final IntegerProperty CONTENT_TITLE_BAR_GAP
setContentTitleBarGap(int)
,
getContentTitleBarGap()
public static final DirectionProperty ORIENTATION
setOrientation(net.infonode.util.Direction)
,
getOrientation()
public static final DirectionProperty DIRECTION
setDirection(net.infonode.util.Direction)
,
getDirection()
public static final HoverListenerProperty HOVER_LISTENER
setHoverListener(net.infonode.gui.hover.HoverListener)
,
getHoverListener()
Constructor Detail |
---|
public ViewTitleBarProperties()
public ViewTitleBarProperties(PropertyMap map)
map
- the property mappublic ViewTitleBarProperties(ViewTitleBarProperties inheritFrom)
inheritFrom
- the object from which to inherit property valuesMethod Detail |
---|
public ViewTitleBarProperties addSuperObject(ViewTitleBarProperties properties)
properties
- the object from which to inherit property values
public ViewTitleBarProperties removeSuperObject(ViewTitleBarProperties superObject)
superObject
- the super object to remove
public ViewTitleBarStateProperties getNormalProperties()
public ViewTitleBarStateProperties getFocusedProperties()
Returns the property values for the title bar's focused state
Note:These properties are added as super object to the normal properties when the view has focus.
public ViewTitleBarProperties setVisible(boolean visible)
visible
- True for visible, otherwise false
public boolean getVisible()
public ViewTitleBarProperties setMinimumSizeProvider(DimensionProvider size)
size
- the minimum size dimension provider or null if title bar's default minimum size should be used instead
public DimensionProvider getMinimumSizeProvider()
public ViewTitleBarProperties setContentTitleBarGap(int gap)
gap
- gap in pixels
public int getContentTitleBarGap()
public ViewTitleBarProperties setOrientation(Direction orientation)
orientation
- the orientation
public Direction getOrientation()
public ViewTitleBarProperties setDirection(Direction direction)
Sets the layout direction
The icon, text and components are laid out in a line that will be rotated in the given direction. The text and icon is rotated and the components are only moved.
direction
- the layout direction
public Direction getDirection()
Returns the layout direction
The icon, text and components are laid out in a line that will be rotated in the given direction. The text and icon is rotated and the components are only moved.
public ViewTitleBarProperties setHoverListener(HoverListener listener)
Sets the hover listener that will be triggered when the title bar is hoverd by the mouse.
The view that contains the title bar will be the source of the hover event sent to the hover listener.
listener
- the hover listener
HoverEvent
public HoverListener getHoverListener()
Gets the hover listener that will be triggered when the title bar is hovered by the mouse.
The view that contains the title bar will be the source of the hover event sent to the hover listener.
HoverEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |