|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Component
Field Summary | |
---|---|
static java.lang.String |
BACKGROUND_CHANGED_PROPERTY
|
static java.lang.String |
CHILDREN_CHANGED_PROPERTY
|
static java.lang.String |
ENABLED_CHANGED_PROPERTY
|
static java.lang.String |
FONT_CHANGED_PROPERTY
|
static java.lang.String |
FOREGROUND_CHANGED_PROPERTY
|
static java.lang.String |
IDENTIFIER_CHANGED_PROPERTY
|
static java.lang.String |
LOCALE_CHANGED_PROPERTY
|
static java.lang.String |
MODEL_CHANGED_PROPERTY
|
static java.lang.String |
SELECTABLE_CHANGED_PROPERTY
|
static java.lang.String |
STYLE_BACKGROUND
A style constant for the Background property. |
static java.lang.String |
STYLE_FONT
A style constant for the Font property. |
static java.lang.String |
STYLE_FOREGROUND
A style constant for the Foreground property. |
static java.lang.String |
UPDATE_PROPERTY
|
static java.lang.String |
VISIBLE_CHANGED_PROPERTY
|
Method Summary | |
---|---|
void |
add(Component c)
Adds the specified Component at the end of this Component's children. |
void |
add(Component c,
int n)
Adds the specified Component as the nth child All component add operations use this method to add components. |
void |
addHierarchyListener(HierarchyListener l)
Adds a hierarchy listener to be notified when this component's state in the hierarchy changes. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a property change listener to this component. |
void |
applyStyle(Style style)
Sets stylistic properties of this component based on a Style
object. |
void |
firePropertyChange(java.lang.String propertyName,
boolean oldValue,
boolean newValue)
Reports a bound property change. |
void |
firePropertyChange(java.lang.String propertyName,
char oldValue,
char newValue)
Reports a bound property change. |
void |
firePropertyChange(java.lang.String propertyName,
double oldValue,
double newValue)
Reports a bound property change. |
void |
firePropertyChange(java.lang.String propertyName,
float oldValue,
float newValue)
Reports a bound property change. |
void |
firePropertyChange(java.lang.String propertyName,
int oldValue,
int newValue)
Reports a bound property change. |
void |
firePropertyChange(java.lang.String propertyName,
long oldValue,
long newValue)
Reports a bound property change. |
void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Reports a bound property change. |
Color |
getBackground()
Returns the background color of the component. |
java.lang.String |
getClientId()
Gets the reuseable Id, this is used to keep component peer id constant over show/hide cycles. |
Component |
getComponent(int n)
Gets the nth immediate child component. |
int |
getComponentCount()
Returns the number of immediate child components. |
Component[] |
getComponents()
Returns an array of all immediate child components. |
EchoInstance |
getEchoInstance()
Returns the EchoInstance object to which this component belongs, or null if it is not bound to any instance. |
Font |
getFont()
Returns the font. |
Color |
getForeground()
Returns the foreground of the component. |
java.lang.Object |
getIdentifier()
Returns the identifier for this component. |
EventListenerList |
getListenerList()
|
java.util.Locale |
getLocale()
Returns the locale of the component. |
Component |
getParent()
Returns the parent component. |
int |
indexOf(Component c)
Returns the index of the specified component if it a child of this Component, or -1 if it is not. |
void |
init()
|
boolean |
isAncestorOf(Component c)
Determines if this component is an ancestor of the specified component. |
boolean |
isEnabled()
Returns true if the component is enabled. |
boolean |
isFocused()
Returns true if the component is focused. |
boolean |
isRecursivelyVisible()
|
boolean |
isRegistered()
Returns true if the component is registered to an application. |
boolean |
isSelectableForScriptRecorder()
|
boolean |
isShowing()
Returns true if the component is registered and all of its ancestors are visible. |
boolean |
isVisible()
Returns the component's visibility state. |
void |
processHierarchyEvent(long changeFlags,
Component c,
Component parent)
|
void |
remove(Component c)
Removes the specified child component. |
void |
remove(int n)
Removes the component at the given index. |
void |
removeAll()
Removes all child Components. |
void |
removeHierarchyListener(HierarchyListener l)
Removes a hierarchy listener from being notified when this component's state in the hierarchy changes. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a property change listener from this component. |
void |
setBackground(Color newValue)
Sets the background color of the component. |
void |
setClientId(java.lang.String reusableId)
Sets the reuseable Id, this is used to keep component peer id constant over show/hide cycles. |
void |
setEnabled(boolean newValue)
Sets whether the component is enabled. |
void |
setFocused(boolean newValue)
Sets whether the component is focused. |
void |
setFont(Font newValue)
Sets the font of the component. |
void |
setForeground(Color newValue)
Sets the foreground color of the component. |
void |
setIdentifier(java.lang.Object newValue)
Sets the identifier for this component. |
void |
setLocale(java.util.Locale newValue)
Sets the locale of the component. |
void |
setParent(Component component)
|
void |
setRegistered(boolean b)
|
void |
setSelectableForScriptRecorder(boolean b)
|
void |
setVisible(boolean newValue)
Sets the component visible or invisible. |
void |
update()
Forces the component to be re-rendered immediately. |
void |
validate()
Validates this component. |
Field Detail |
---|
static final java.lang.String BACKGROUND_CHANGED_PROPERTY
static final java.lang.String CHILDREN_CHANGED_PROPERTY
static final java.lang.String ENABLED_CHANGED_PROPERTY
static final java.lang.String FONT_CHANGED_PROPERTY
static final java.lang.String FOREGROUND_CHANGED_PROPERTY
static final java.lang.String IDENTIFIER_CHANGED_PROPERTY
static final java.lang.String LOCALE_CHANGED_PROPERTY
static final java.lang.String MODEL_CHANGED_PROPERTY
static final java.lang.String UPDATE_PROPERTY
static final java.lang.String VISIBLE_CHANGED_PROPERTY
static final java.lang.String SELECTABLE_CHANGED_PROPERTY
static final java.lang.String STYLE_BACKGROUND
static final java.lang.String STYLE_FONT
static final java.lang.String STYLE_FOREGROUND
Method Detail |
---|
void add(Component c)
c
- The child component to add.void add(Component c, int n)
c
- The child component to add.n
- The index at which to add the child component, or -1 to add
the component at the end.void addHierarchyListener(HierarchyListener l)
l
- The HierarchyListener
to add.void addPropertyChangeListener(java.beans.PropertyChangeListener l)
l
- The listener to add.void applyStyle(Style style)
Style
object. The version of this method in Component
will set
foreground and background colors and the font from the style if they are
present. Components should override this method if they allow more
properties to be set from a style object, and should call
super.applyStyle() if necessary.
style
- The style object from which to retrieve properties for this
Component
.void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
propertyName
- The name of the changed property.oldValue
- The previous value of the property.newValue
- The present value of the property.void firePropertyChange(java.lang.String propertyName, boolean oldValue, boolean newValue)
propertyName
- The name of the changed property.oldValue
- The previous value of the property.newValue
- The present value of the property.void firePropertyChange(java.lang.String propertyName, char oldValue, char newValue)
propertyName
- The name of the changed property.oldValue
- The previous value of the property.newValue
- The present value of the property.void firePropertyChange(java.lang.String propertyName, double oldValue, double newValue)
propertyName
- The name of the changed property.oldValue
- The previous value of the property.newValue
- The present value of the property.void firePropertyChange(java.lang.String propertyName, float oldValue, float newValue)
propertyName
- The name of the changed property.oldValue
- The previous value of the property.newValue
- The present value of the property.void firePropertyChange(java.lang.String propertyName, int oldValue, int newValue)
propertyName
- The name of the changed property.oldValue
- The previous value of the property.newValue
- The present value of the property.void firePropertyChange(java.lang.String propertyName, long oldValue, long newValue)
propertyName
- The name of the changed property.oldValue
- The previous value of the property.newValue
- The present value of the property.Color getBackground()
Component getComponent(int n)
n
- The index of the component to retrieve.
java.lang.IndexOutOfBoundsException
- If the index is invalid.int getComponentCount()
Component[] getComponents()
EchoInstance getEchoInstance()
Font getFont()
Color getForeground()
java.lang.Object getIdentifier()
java.util.Locale getLocale()
Component getParent()
int indexOf(Component c)
c
- The component to determine the index of.
boolean isAncestorOf(Component c)
c
- The component to test for ancestry.
boolean isEnabled()
boolean isFocused()
boolean isRegistered()
boolean isShowing()
boolean isVisible()
void remove(Component c)
c
- The child component to remove.void remove(int n)
n
- The index of the child component to remove.
java.lang.IndexOutOfBoundsException
- If the index is not valid.void removeAll()
void removeHierarchyListener(HierarchyListener l)
l
- The HierarchyListener
to remove.void removePropertyChangeListener(java.beans.PropertyChangeListener l)
l
- The listener to be removed.void setBackground(Color newValue)
newValue
- The new background color of the component.void setEnabled(boolean newValue)
newValue
- True if the component is enabled.void setFocused(boolean newValue)
newValue
- True if the component is to be focused.void setFont(Font newValue)
newValue
- The new font of the component.void setForeground(Color newValue)
newValue
- The new foreground color of the component.void setIdentifier(java.lang.Object newValue)
newValue
- The new identifier for this component.void setLocale(java.util.Locale newValue)
newValue
- The new locale for the component.void setVisible(boolean newValue)
newValue
- The new visibility state of the component.void update()
void validate()
validate()
is not inadvisable.
java.lang.String getClientId()
Gets the reuseable Id, this is used to keep component peer id constant over show/hide cycles.
void setClientId(java.lang.String reusableId)
Sets the reuseable Id, this is used to keep component peer id constant over show/hide cycles. Do not call from your application code !
void setParent(Component component)
void setRegistered(boolean b)
boolean isRecursivelyVisible()
void processHierarchyEvent(long changeFlags, Component c, Component parent)
void init()
EventListenerList getListenerList()
void setSelectableForScriptRecorder(boolean b)
boolean isSelectableForScriptRecorder()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |