|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectUI.GEVAControl
public abstract class GEVAControl
Base class on which all UI controls are derived
Field Summary | |
---|---|
protected java.lang.String |
comment
All controls have a comment, which is displayed as a tooltip |
protected GEVADirtyListener |
dirtyListener
All controls have a reference back to the GUI window. |
protected java.lang.String |
name
The text input/output to the properties file to identif the property this control relates to. |
protected GEVAContainerControl |
parent
All controls have a parent (though a Book will have a null parent) |
protected java.lang.String |
title
The text displayed to the user describing this controls purpose |
protected java.lang.String |
type
Remember the type name so generic types will know their specifics |
Method Summary | |
---|---|
void |
addActionListener(GEVAActionListener listener)
Add a listener for events on this object |
abstract int |
countComponents()
Abstract way for a container to know about its child's awt components. |
protected boolean |
fireActionEvent(GEVAActionEvent event)
Called by GEVA* control when an event occurs and notifies all listeners of that event |
java.lang.String |
getComment()
Get this control's comment |
java.awt.Component |
getComponent()
Abstract way for a container to know about its child's awt components. |
abstract java.awt.Component |
getComponent(int index)
Abstract way for a container to know about its child's awt components. |
java.lang.String |
getName()
Get this control's name |
GEVAContainerControl |
getParent()
Get this control's parent control |
abstract java.lang.String |
getText()
Get the value of teh control, using a text string |
java.lang.String |
getTitle()
Get this control's title |
java.lang.String |
getType()
Get this control's type |
boolean |
isType(java.lang.String type)
Helper - check if this is of type type |
abstract boolean |
load(java.util.Properties properties)
A control should override this to get its properties. |
void |
removeActionListener(GEVAActionListener listener)
Remove a listener for events on this object |
abstract boolean |
save(java.util.Properties properties)
A control should override this to set its properties. |
abstract void |
setEnabled(boolean enabled)
Make this control enabled or disabled. |
abstract void |
setText(java.lang.String text)
Set the value of the control, using a text string |
abstract void |
setVisible(boolean show)
Make this control visible |
protected abstract void |
setVisibleControlGroup(java.lang.String name,
boolean show)
Make all the controls in the control group visible or hidden. |
abstract void |
validate()
Get this control to validate itself |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected GEVADirtyListener dirtyListener
protected GEVAContainerControl parent
protected java.lang.String type
protected java.lang.String title
protected java.lang.String name
protected java.lang.String comment
Method Detail |
---|
public GEVAContainerControl getParent()
public java.lang.String getType()
public boolean isType(java.lang.String type)
type
- The type to test against this control's type
public java.lang.String getTitle()
public java.lang.String getName()
public java.lang.String getComment()
public abstract void setEnabled(boolean enabled)
enabled
- true to enabled, false to disablepublic abstract boolean load(java.util.Properties properties)
properties
- The properties of a loaded properties filepublic abstract boolean save(java.util.Properties properties)
properties
- The properties of a loaded properties filepublic java.awt.Component getComponent()
public abstract java.awt.Component getComponent(int index)
index
- The index of the component to get
public abstract int countComponents()
public void addActionListener(GEVAActionListener listener)
listener
- Listener that implements GEVAActionListenerpublic void removeActionListener(GEVAActionListener listener)
listener
- Listener that implements GEVAActionListenerprotected boolean fireActionEvent(GEVAActionEvent event)
event
- The details of the event that occurred
protected abstract void setVisibleControlGroup(java.lang.String name, boolean show)
name
- The name of the control group, as set during the call to
addControlGroupshow
- Specify true to show the group, else falsepublic abstract void setVisible(boolean show)
show
- Specify true to show this control, else false to hidepublic abstract java.lang.String getText()
public abstract void setText(java.lang.String text)
text
- The value to setpublic abstract void validate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |