|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jgb.handlers.swing.AbstractTagHandler | +--jgb.handlers.swing.AbstractControlTagHandler
Field Summary | |
protected static String |
ATTR_ACCELERATOR
The name of the accelerator attribute. |
protected static String |
ATTR_GROUP
The name of the group attribute. |
protected static String |
ATTR_MNEMONIC
The name of the mnemonic attribute. |
protected static String |
ATTR_REFLABEL
The name of the reflabel attribute. |
protected static String |
ATTR_SELECTED
The name of the selected attribute. |
protected static String |
ATTR_TEXT
The name of the text attribute. |
protected static String |
ATTR_TYPE
The name of the type attribute. |
static String |
TYPE_RADIO
The value of the type attribute which instantiates a radio menu item. |
Fields inherited from class jgb.handlers.swing.AbstractTagHandler |
ATTR_CLASS, ATTR_ID, ATTR_REFID, tagContext, tagName |
Constructor Summary | |
AbstractControlTagHandler()
|
Method Summary | |
protected String |
calcControlClassName(String baseClassName)
Convenience method that prefixes the passed base class name with the subclass' implementation of getDefaultPackagePrefix() .
|
protected Object |
getCurrentConstraints()
Convenience method that returns the context's current value in the TagHandler.CURRENT_CONSTRAINTS_KEY
key. |
protected Component |
getCurrentControl()
Convenience method that automatically casts the current object to a Component . |
protected String |
getCurrentControlId()
Convenience method that maps directly to getCurrentObjectId() . |
protected abstract String |
getDefaultPackagePrefix()
Returns the default package in which to search for class names. |
protected boolean |
isCurrentControlValid()
Convenience method that maps directly to isCurrentObjectValid() . |
protected void |
popCurrentControl()
Convenience method that maps to popCurrentObject() . |
protected void |
pushCurrentControl(Component component)
Convenience method that maps to pushCurrentObject(String, Object) .
|
protected void |
pushCurrentControl(Component component,
String id)
Convenience method that maps to pushCurrentObject(String, Object) .
|
Methods inherited from class jgb.handlers.swing.AbstractTagHandler |
endElement, enterElement, exitElement, getCurrentObject, getCurrentObjectId, getObject, isCurrentObjectValid, popCurrentObject, pushCurrentObject, pushCurrentObject, putComponent, putObject, startElement, throwParsingException, throwParsingException, throwParsingException |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String TYPE_RADIO
protected static final String ATTR_TYPE
protected static final String ATTR_TEXT
protected static final String ATTR_MNEMONIC
protected static final String ATTR_ACCELERATOR
protected static final String ATTR_GROUP
protected static final String ATTR_REFLABEL
protected static final String ATTR_SELECTED
Constructor Detail |
public AbstractControlTagHandler()
Method Detail |
protected void pushCurrentControl(Component component)
pushCurrentObject(String, Object)
.
This method acceps a Component
instead of
a generic Object
.
protected void pushCurrentControl(Component component, String id)
pushCurrentObject(String, Object)
.
This method acceps a Component
instead of
a generic Object
.
protected void popCurrentControl()
popCurrentObject()
.
protected Component getCurrentControl()
Component
.
protected String getCurrentControlId()
getCurrentObjectId()
.
protected boolean isCurrentControlValid()
isCurrentObjectValid()
.
protected Object getCurrentConstraints()
TagHandler.CURRENT_CONSTRAINTS_KEY
key.
protected String calcControlClassName(String baseClassName)
getDefaultPackagePrefix()
.
This method will not prefix the base class name with anything if
it contains a period ('.').java.awt.Button
",
it will return "java.awt.Button
".JButton
" and
getDefaultPackagePrefix()
returns "javax.swing.
",
then this method will return "javax.swing.JButton
".getDefaultPackagePrefix()
.
baseClassName
- A class name, with or without a package.
protected abstract String getDefaultPackagePrefix()
calcControlClassName(String)
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |