net.sf.jzeno.echo.components
Class Title
java.lang.Object
nextapp.echo.AbstractComponent
net.sf.jzeno.echo.components.CustomComponent
net.sf.jzeno.echo.components.Title
- All Implemented Interfaces:
- java.io.Serializable, BindingTarget, PropertyComponent, RebindableComponent, EventSink, EventSource, Precreation, Component, FastComponent, FastComponentContainer
public final class Title
- extends CustomComponent
- implements Precreation
Simple control for creating title bars on the screen. Titles are red
background, white text, etc...
- See Also:
- Serialized Form
Fields inherited from interface nextapp.echo.Component |
BACKGROUND_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FONT_CHANGED_PROPERTY, FOREGROUND_CHANGED_PROPERTY, IDENTIFIER_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, MODEL_CHANGED_PROPERTY, SELECTABLE_CHANGED_PROPERTY, STYLE_BACKGROUND, STYLE_FONT, STYLE_FOREGROUND, UPDATE_PROPERTY, VISIBLE_CHANGED_PROPERTY |
Constructor Summary |
Title()
|
Title(java.lang.Class beanClass,
java.lang.String property,
java.lang.String constructionHints)
|
Title(java.lang.String title)
|
Title(java.lang.String title,
int depth)
|
Methods inherited from class net.sf.jzeno.echo.components.CustomComponent |
addValidator, fireActionEvent, fireActionEvent, fireActionEvent, getActionCommand, getBean, getBeanClass, getDecorator, getNullObject, getProperty, getValidationErrors, getValidators, getValue, isBound, isMarkedInvalid, isReadOnly, isRequired, isValid, markInvalid, markValid, preRender, removeValidator, setActionCommand, setBean, setBeanClass, setDecorator, setNullObject, setProperty, setReadOnly, setRequired, setValue, traceValue, validate |
Methods inherited from class nextapp.echo.AbstractComponent |
add, add, addHierarchyListener, addPropertyChangeListener, applyStyle, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getClientId, getComponent, getComponentCount, getComponents, getEchoInstance, getForeground, getIdentifier, getListenerList, getLocale, getParent, indexOf, init, isAncestorOf, isDifferent, isEnabled, isFocused, isRecursivelyVisible, isRegistered, isSelectableForScriptRecorder, isShowing, isVisible, processHierarchyEvent, remove, remove, removeAll, removeHierarchyListener, removePropertyChangeListener, setBackground, setClientId, setEnabled, setFocused, setForeground, setIdentifier, setLocale, setParent, setRegistered, setSelectableForScriptRecorder, setVisible, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LEFT
public static final int LEFT
- See Also:
- Constant Field Values
CENTER
public static final int CENTER
- See Also:
- Constant Field Values
RIGHT
public static final int RIGHT
- See Also:
- Constant Field Values
LEVEL_ONE
public static final int LEVEL_ONE
- See Also:
- Constant Field Values
LEVEL_TWO
public static final int LEVEL_TWO
- See Also:
- Constant Field Values
LEVEL_THREE
public static final int LEVEL_THREE
- See Also:
- Constant Field Values
PERCENT_UNITS
public static final int PERCENT_UNITS
- See Also:
- Constant Field Values
PIXEL_UNITS
public static final int PIXEL_UNITS
- See Also:
- Constant Field Values
Title
public Title()
Title
public Title(java.lang.String title,
int depth)
Title
public Title(java.lang.String title)
Title
public Title(java.lang.Class beanClass,
java.lang.String property,
java.lang.String constructionHints)
getTitle
public java.lang.String getTitle()
- Returns:
- Returns the titleText.
setTitle
public void setTitle(java.lang.String titleText)
- Parameters:
titleText
- The titleText to set.
getHorizontalAlignment
public int getHorizontalAlignment()
setHorizontalAlignment
public void setHorizontalAlignment(int alignment)
getDepth
public int getDepth()
- Returns:
- Returns the depth.
setDepth
public void setDepth(int depth)
- Parameters:
depth
- The depth to set.
rebind
public void rebind()
- Description copied from interface:
RebindableComponent
This operation causes the component to reset it's content to that of the
domain model.
- Specified by:
rebind
in interface RebindableComponent
- Overrides:
rebind
in class CustomComponent
setBorderSize
public void setBorderSize(int i)
getBorderSize
public int getBorderSize()
applyContext
public void applyContext()
- Specified by:
applyContext
in interface Precreation
getFont
public Font getFont()
- Description copied from interface:
Component
- Returns the font.
- Specified by:
getFont
in interface Component
- Overrides:
getFont
in class AbstractComponent
- Returns:
- The font of the component.
getWidth
public int getWidth()
getWidthUnits
public int getWidthUnits()
setFont
public void setFont(Font newValue)
- Description copied from interface:
Component
- Sets the font of the component.
- Specified by:
setFont
in interface Component
- Overrides:
setFont
in class AbstractComponent
- Parameters:
newValue
- The new font of the component.
setWidth
public void setWidth(int newValue)
setWidthUnits
public void setWidthUnits(int newValue)