public class JSpinnerHandler extends DefaultComponentHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
JSpinnerHandler.CompiledSpinner |
DefaultObjectHandler.ProxyEventInfo| Modifier and Type | Field and Description |
|---|---|
static String |
MAXIMUM_PROPERTY |
static String |
MINIMUM_PROPERTY |
static String |
VALUE_PROPERTY |
ACTION_ICON_ATTRIBUTE, BORDER_ATTRIBUTE, BORDER_FACTORY_PREFIX, CONTAINER_DELEGATE_ATTRIBUTE, FONT_FACE_ATTRIBUTE, FONT_SIZE_ATTRIBUTE, FONT_STYLE_ATTRIBUTE, FONT_WEIGHT_ATTRIBUTE, HEIGHT_ATTRIBUTE, I18N_MNEMONIC_ATTRIBUTE, ICON_ATTRIBUTE, ICON_IMAGE_ATTRIBUTE, log, NAME_ATTRIBUTE, TITLED_BORDER_PREFIX, WIDTH_ATTRIBUTE, X_ATTRIBUTE, Y_ATTRIBUTEABSTRACT_ATTRIBUTE, BORDER_LAYOUT_PREFIX, CONSTRAINTS_ATTRIBUTE, CONSTRUCTOR_PARAMS_ATTRIBUTE, DECORATOR_ATTRIBUTE, DISPLAYED_MNEMONIC_ATTRIBUTE, DISPLAYED_MNEMONIC_INDEX_ATTRIBUTE, GENERIC_TYPE_ATTRIBUTE, GRID_LAYOUT_PREFIX, HANDLER_ATTRIBUTE, ID_ATTRIBUTE, IMPLEMENTS_ATTRIBUTE, INITIALIZER_ATTRIBUTE, JAVA_BEAN_ATTRIBUTE, jaxxBeanInfo, LAYOUT_ATTRIBUTE, MNEMONIC_ATTRIBUTE, objectMap, STYLE_CLASS_ATTRIBUTE, SUPER_GENERIC_TYPE_ATTRIBUTEXMLNS_ATTRIBUTE| Constructor and Description |
|---|
JSpinnerHandler(ClassDescriptor beanClass) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeComponent(CompiledObject object,
Element tag,
JAXXCompiler compiler) |
protected void |
configureProxyEventInfo()
Configures the event handling for members which do not fire
PropertyChangeEvent when
modified. |
CompiledObject |
createCompiledObject(String id,
JAXXCompiler compiler)
Creates the
CompiledObject which will represent the object
created by this TagHandler. |
ClassDescriptor |
getPropertyType(CompiledObject object,
String propertyName,
JAXXCompiler compiler)
Returns the type of the named property.
|
void |
setProperty(CompiledObject object,
String name,
Object value,
JAXXCompiler compiler)
Appends Java code to a
CompiledObject in order to implement a property assignment. |
compileFirstPass, compileSecondPass, constantValue, getContainerDelegate, getGetPropertyCode, getSetPropertyCode, init, isContainer, isPropertyInherited, openComponent, scanAttributesForDependencies, setAttribute, setDefaultsaddEventHandler, addProxyEventInfo, addProxyEventInfo, addProxyEventInfo, addProxyEventInfo, applyStylesheets, compileChildrenFirstPass, compileChildrenSecondPass, compileChildTagFirstPass, compileChildTagSecondPass, convertFromString, getAttributeComparator, getAttributeOrdering, getBeanClass, getEventClass, getEventInfo, getJAXXBeanInfo, getJAXXBeanInfo, isEventHandlerName, isMemberBound, registerCompiledObject, safeInit, setAttributeFromCss, setAttributes, toStringpublic static final String MINIMUM_PROPERTY
public static final String MAXIMUM_PROPERTY
public static final String VALUE_PROPERTY
public JSpinnerHandler(ClassDescriptor beanClass)
public CompiledObject createCompiledObject(String id, JAXXCompiler compiler) throws CompilerException
DefaultObjectHandlerCompiledObject which will represent the object
created by this TagHandler.createCompiledObject in class DefaultObjectHandlerid - the CompiledObject's ID.compiler - compiler to useCompiledObject to useCompilerExceptionprotected void configureProxyEventInfo()
DefaultObjectHandlerPropertyChangeEvent when
modified. The default implementation does nothing. Subclasses should override this method to call
addProxyEventInfo for each member which requires special handling.configureProxyEventInfo in class DefaultComponentHandlerpublic ClassDescriptor getPropertyType(CompiledObject object, String propertyName, JAXXCompiler compiler) throws CompilerException
DefaultObjectHandlerget method;
for instance JLabel's text property is a String.getPropertyType in class DefaultComponentHandlerobject - the object being compiledpropertyName - the simple JavaBeans-style name of the propertycompiler - the current JAXXCompilerCompilerException - if the type cannot be determinedpublic void setProperty(CompiledObject object, String name, Object value, JAXXCompiler compiler) throws CompilerException
DefaultObjectHandlerCompiledObject in order to implement a property assignment.
setProperty is invoked in response to most XML attributes (those which are not more
complicated cases, like data bindings or event handlers).
By the time it reaches this method, the value has already been converted from its XML
string representation to the appropriate destination type for the property (i.e. if
JLabel.foreground is being set, value will be a Color).setProperty in class DefaultObjectHandlerobject - the object being modifiedname - the name of the property to setvalue - the value to set the property tocompiler - the current JAXXCompilerCompilerException - if a compilation error occursprotected void closeComponent(CompiledObject object, Element tag, JAXXCompiler compiler) throws CompilerException
closeComponent in class DefaultComponentHandlerCompilerExceptionCopyright © 2008–2017 Ultreia.io. All rights reserved.