|
EchoPoint 2.1.0rc5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo2.app.Component
echopointng.ComponentEx
echopointng.AbleComponent
echopointng.TitleBar
public class TitleBar
TitleBar is a component that usually acts as a "title" of
component, much like the titlebar area in a windowing environment like
Windows.
TitleBar has a concept of "expanding and contracing" other content and as such
implements Expandable and has a ExpansionModel to track whether
the titlebar is expanded or not.
TitleBar has a left and right icon that can be "expanded". It can also
have an optional 'application', 'help' and 'close' component, which will allow
buttons, imageicons and other components to be used on the TitleBar.
A TitleBar is always drawn as :
|--------------------------------------------------------------------------| | | | [application] [left icon] Title text [right icon][help][close] | | | |--------------------------------------------------------------------------|
| Fields inherited from class echopointng.ComponentEx |
|---|
PROPERTY_HIDDEN |
| Fields inherited from interface echopointng.able.Expandable |
|---|
EXPANDED_CHANGED_PROPERTY, PROPERTY_EXPANSION_GROUP, PROPERTY_EXPANSION_MODEL |
| Fields inherited from interface echopointng.able.AccessKeyable |
|---|
PROPERTY_ACCESS_KEY |
| Fields inherited from interface echopointng.able.Borderable |
|---|
PROPERTY_BORDER |
| Fields inherited from interface echopointng.able.MouseCursorable |
|---|
CURSOR_AUTO, CURSOR_CROSSHAIR, CURSOR_CUSTOM_URI, CURSOR_DEFAULT, CURSOR_E_RESIZE, CURSOR_HELP, CURSOR_MOVE, CURSOR_N_RESIZE, CURSOR_NE_RESIZE, CURSOR_NW_RESIZE, CURSOR_POINTER, CURSOR_S_RESIZE, CURSOR_SE_RESIZE, CURSOR_SW_RESIZE, CURSOR_TEXT, CURSOR_W_RESIZE, CURSOR_WAIT, PROPERTY_MOUSE_CURSOR, PROPERTY_MOUSE_CURSOR_URI |
| Fields inherited from interface echopointng.able.Insetable |
|---|
DEFAULT_INSETS, DEFAULT_OUTSETS, PROPERTY_INSETS, PROPERTY_OUTSETS |
| Fields inherited from interface echopointng.able.Widthable |
|---|
PROPERTY_WIDTH |
| Fields inherited from interface echopointng.able.Heightable |
|---|
PROPERTY_HEIGHT |
| Fields inherited from interface echopointng.able.ToolTipable |
|---|
PROPERTY_TOOL_TIP_TEXT |
| Constructor Summary | |
|---|---|
TitleBar()
|
|
TitleBar(String title)
|
|
TitleBar(String title,
boolean isExpanded)
|
|
| Method Summary | |
|---|---|
Component |
getApplicationComponent()
|
FillImage |
getBackgroundImage()
Returns the background image of the TitleBar. |
Component |
getCloseComponent()
|
ImageReference |
getExpandedLeftIcon()
|
ImageReference |
getExpandedRightIcon()
|
String |
getExpandedTitle()
|
FillImage |
getExpandedTitleBackgroundImage()
|
ExpansionGroup |
getExpansionGroup()
|
ExpansionModel |
getExpansionModel()
|
Component |
getHelpComponent()
|
ImageReference |
getLeftIcon()
|
ImageReference |
getRightIcon()
|
Color |
getRolloverBackground()
Returns the background color of the TitleBar when the mouse cursor is
inside its bounds. |
FillImage |
getRolloverBackgroundImage()
Returns the background image displayed when the mouse cursor is inside the TitleBar's bounds. |
Border |
getRolloverBorder()
Returns the border displayed around the TitleBar when the mouse cursor is
inside its bounds. |
Font |
getRolloverFont()
Returns the font of the TitleBar when the mouse cursor is inside its
bounds. |
Color |
getRolloverForeground()
Returns the foreground color of the TitleBar when the mouse cursor is
inside its bounds. |
String |
getTitle()
|
Alignment |
getTitleAlignment()
|
FillImage |
getTitleBackgroundImage()
|
boolean |
isExpanded()
|
boolean |
isRolloverEnabled()
Determines if rollover effects are enabled. |
void |
processInput(String inputName,
Object inputValue)
|
void |
setApplicationComponent(Component newValue)
|
void |
setBackgroundImage(FillImage newValue)
Sets the background image of the TitleBar. |
void |
setCloseComponent(Component newValue)
|
void |
setExpanded(boolean isExpanded)
Sets whether the Expandable is expanded or not |
void |
setExpandedTitle(String newValue)
Sets the expanded title of the TitleBar. |
void |
setExpandedTitleBackgroundImage(FillImage fillImage)
Sets the background of the TitleBar when it is in expanded mode. |
void |
setExpansionGroup(ExpansionGroup newExpansionGroup)
This setExpansionGroup method is not supported on TitleBars. |
void |
setExpansionModel(ExpansionModel newExpansionModel)
Sets the ExpansionModel model used by the Expandable. |
void |
setHelpComponent(Component newValue)
|
void |
setLeftExpandedIcon(ImageReference newValue)
|
void |
setLeftIcon(ImageReference newValue)
|
void |
setRightExpandedIcon(ImageReference newValue)
|
void |
setRightIcon(ImageReference newValue)
|
void |
setRolloverBackground(Color newValue)
Sets the background color of the TitleBar when the mouse cursor is inside
its bounds. |
void |
setRolloverBackgroundImage(FillImage newValue)
Sets the background image displayed when the mouse cursor is inside the TitleBar's bounds |
void |
setRolloverBorder(Border newValue)
Sets the border displayed around the TitleBar when the mouse cursor is
inside its bounds. |
void |
setRolloverEnabled(boolean newValue)
Sets whether rollover effects are enabled when the mouse cursor is inside the TitleBar's bounds. |
void |
setRolloverFont(Font newValue)
Sets the font of the TitleBar when the mouse cursor is inside its bounds. |
void |
setRolloverForeground(Color newValue)
Sets the foreground color of the TitleBar when the mouse cursor is inside
its bounds. |
void |
setTitle(String newValue)
Sets the title of the TitleBar |
void |
setTitleAlignment(Alignment newValue)
Sets the alignment of the title of the TitleBar |
void |
setTitleBackgroundImage(FillImage fillImage)
Sets the background of the TitleBar. |
String |
toString()
|
void |
validate()
|
| Methods inherited from class echopointng.AbleComponent |
|---|
getAccessKey, getBorder, getHeight, getInsets, getMouseCursor, getMouseCursorUri, getOutsets, getToolTipText, getWidth, setAccessKey, setBorder, setHeight, setInsets, setMouseCursor, setMouseCursorUri, setOutsets, setToolTipText, setWidth |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Field Detail |
|---|
public static final ImageReference DEFAULT_LEFT_EXPANDED_ICON
public static final ImageReference DEFAULT_LEFT_ICON
public static final Style DEFAULT_STYLE
public static final Alignment DEFAULT_TITLE_ALIGNMENT
public static final String PROPERTY_APPLICATION_COMPONENT
public static final String PROPERTY_BACKGROUND_IMAGE
public static final String PROPERTY_CLOSE_COMPONENT
public static final String PROPERTY_EXPANDED_TITLE
public static final String PROPERTY_EXPANDED_TITLE_BACKGROUND_IMAGE
public static final String PROPERTY_HELP_COMPONENT
public static final String PROPERTY_LEFT_EXPANDED_ICON
public static final String PROPERTY_LEFT_ICON
public static final String PROPERTY_RIGHT_EXPANDED_ICON
public static final String PROPERTY_RIGHT_ICON
public static final String PROPERTY_ROLLOVER_BACKGROUND
public static final String PROPERTY_ROLLOVER_BACKGROUND_IMAGE
public static final String PROPERTY_ROLLOVER_BORDER
public static final String PROPERTY_ROLLOVER_ENABLED
public static final String PROPERTY_ROLLOVER_FONT
public static final String PROPERTY_ROLLOVER_FOREGROUND
public static final String PROPERTY_TITLE
public static final String PROPERTY_TITLE_ALIGNMENT
public static final String PROPERTY_TITLE_BACKGROUND_IMAGE
| Constructor Detail |
|---|
public TitleBar()
public TitleBar(String title)
public TitleBar(String title,
boolean isExpanded)
| Method Detail |
|---|
public Component getApplicationComponent()
public FillImage getBackgroundImage()
TitleBar.
public Component getCloseComponent()
public ImageReference getExpandedLeftIcon()
TitleBar is expandedpublic ImageReference getExpandedRightIcon()
TitleBar is expandedpublic String getExpandedTitle()
TitleBarpublic FillImage getExpandedTitleBackgroundImage()
TitleBar when it is in expanded mode.public ExpansionGroup getExpansionGroup()
getExpansionGroup in interface ExpandableExpansionGroup of the Expandable.Expandable.getExpansionGroup()public ExpansionModel getExpansionModel()
getExpansionModel in interface ExpandableExpansionModel model of the Expandable.Expandable.getExpansionModel()public Component getHelpComponent()
public ImageReference getLeftIcon()
TitleBarpublic ImageReference getRightIcon()
TitleBarpublic Color getRolloverBackground()
TitleBar when the mouse cursor is
inside its bounds.
public FillImage getRolloverBackgroundImage()
TitleBar's bounds.
public Border getRolloverBorder()
TitleBar when the mouse cursor is
inside its bounds.
public Font getRolloverFont()
TitleBar when the mouse cursor is inside its
bounds.
public Color getRolloverForeground()
TitleBar when the mouse cursor is
inside its bounds.
public String getTitle()
TitleBarpublic Alignment getTitleAlignment()
TitleBarpublic FillImage getTitleBackgroundImage()
TitleBar.public boolean isExpanded()
isExpanded in interface ExpandableExpandable is expanded or notExpandable.isExpanded()public boolean isRolloverEnabled()
setRolloverEnabled(boolean)
public void processInput(String inputName,
Object inputValue)
processInput in class ComponentComponent.processInput(java.lang.String, java.lang.Object)public void setApplicationComponent(Component newValue)
public void setBackgroundImage(FillImage newValue)
TitleBar.
newValue - the new background imagepublic void setCloseComponent(Component newValue)
public void setExpanded(boolean isExpanded)
ExpandableExpandable is expanded or not
setExpanded in interface ExpandableExpandable.setExpanded(boolean)public void setExpandedTitle(String newValue)
TitleBar. If this
is null, then the general title will be used
public void setExpandedTitleBackgroundImage(FillImage fillImage)
TitleBar when it is in expanded mode.
fillImage - The FillImage to use as background.public void setExpansionGroup(ExpansionGroup newExpansionGroup)
setExpansionGroup in interface ExpandableExpandable.setExpansionGroup(echopointng.model.ExpansionGroup)public void setExpansionModel(ExpansionModel newExpansionModel)
ExpandableExpansionModel model used by the Expandable.
setExpansionModel in interface ExpandableExpandable.setExpansionModel(echopointng.model.ExpansionModel)public void setHelpComponent(Component newValue)
public void setLeftExpandedIcon(ImageReference newValue)
public void setLeftIcon(ImageReference newValue)
public void setRightExpandedIcon(ImageReference newValue)
public void setRightIcon(ImageReference newValue)
public void setRolloverBackground(Color newValue)
TitleBar when the mouse cursor is inside
its bounds.
newValue - the new Colorpublic void setRolloverBackgroundImage(FillImage newValue)
TitleBar's bounds
newValue - the new background imagepublic void setRolloverBorder(Border newValue)
TitleBar when the mouse cursor is
inside its bounds.
newValue - the new borderpublic void setRolloverEnabled(boolean newValue)
TitleBar's bounds. Rollover properties have no effect unless this
property is set to true. The default value is false.
newValue - true if rollover effects should be enabledpublic void setRolloverFont(Font newValue)
TitleBar when the mouse cursor is inside its bounds.
newValue - the new Fontpublic void setRolloverForeground(Color newValue)
TitleBar when the mouse cursor is inside
its bounds.
newValue - the new Colorpublic void setTitle(String newValue)
TitleBar
public void setTitleAlignment(Alignment newValue)
TitleBar
public void setTitleBackgroundImage(FillImage fillImage)
TitleBar.
fillImage - The FillImage to use as background.public void validate()
validate in class ComponentComponent.validate()public String toString()
toString in class ObjectObject.toString()
|
EchoPoint 2.1.0rc5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||