public class JRadioButtonHandler extends DefaultComponentHandler
DefaultObjectHandler.ProxyEventInfoACTION_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, COMPUTE_I18N_ATTRIBUTE, CONSTRAINTS_ATTRIBUTE, CONSTRUCTOR_PARAMS_ATTRIBUTE, DECORATOR_ATTRIBUTE, DISPLAYED_MNEMONIC_ATTRIBUTE, DISPLAYED_MNEMONIC_INDEX_ATTRIBUTE, GENERIC_TYPE_ATTRIBUTE, GRID_LAYOUT_PREFIX, HANDLER_ATTRIBUTE, I18N_FORMAT_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 |
|---|
JRadioButtonHandler(ClassDescriptor beanClass) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureProxyEventInfo()
Configures the event handling for members which do not fire
PropertyChangeEvent when
modified. |
ClassDescriptor |
getPropertyType(CompiledObject object,
String name,
JAXXCompiler compiler)
Returns the type of the named property.
|
String |
getSetPropertyCode(String id,
String name,
String valueCode,
JAXXCompiler compiler)
Returns a snippet of Java code which will set an object property at runtime.
|
boolean |
isMemberBound(String name) |
void |
setProperty(CompiledObject object,
String name,
Object value,
JAXXCompiler compiler)
Appends Java code to a
CompiledObject in order to implement a property assignment. |
closeComponent, compileFirstPass, compileSecondPass, constantValue, getContainerDelegate, getGetPropertyCode, init, isContainer, isPropertyInherited, openComponent, scanAttributesForDependencies, setAttribute, setDefaultsaddEventHandler, addProxyEventInfo, addProxyEventInfo, addProxyEventInfo, addProxyEventInfo, applyStylesheets, compileChildrenFirstPass, compileChildrenSecondPass, compileChildTagFirstPass, compileChildTagSecondPass, convertFromString, createCompiledObject, getAttributeComparator, getAttributeOrdering, getBeanClass, getEventClass, getEventInfo, getJAXXBeanInfo, getJAXXBeanInfo, isEventHandlerName, registerCompiledObject, safeInit, setAttributeFromCss, setAttributes, toStringpublic JRadioButtonHandler(ClassDescriptor beanClass)
protected 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 name, JAXXCompiler compiler) throws CompilerException
DefaultObjectHandlerget method;
for instance JLabel's text property is a String.getPropertyType in class DefaultComponentHandlerobject - the object being compiledname - the simple JavaBeans-style name of the propertycompiler - the current JAXXCompilerCompilerException - if the type cannot be determinedpublic boolean isMemberBound(String name) throws UnsupportedAttributeException
isMemberBound in class DefaultObjectHandlername - name of the propertytrue if the named member is bound (fires PropertyChangeEvent
when modified). Members are either fields (represented by the simple name of the field) or get/is
methods (represented by the simple name of the method, not the simplified JavaBeans-style name).
Methods which are not actually bound in their native class, but for which proxy events have been
configured (such as JTextField.getText, return true.UnsupportedAttributeException - if attribute is not supportedpublic void setProperty(CompiledObject object, String name, Object value, JAXXCompiler compiler)
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 JAXXCompilerpublic String getSetPropertyCode(String id, String name, String valueCode, JAXXCompiler compiler) throws CompilerException
DefaultObjectHandlerset method, but it can be arbitrarily complex.getSetPropertyCode in class DefaultComponentHandlerid - Java code for the object whose property is being setname - the name of the property to setvalueCode - Java expression representing the value to set the property tocompiler - the current JAXXCompilerCompilerException - if a compilation error occursCopyright © 2008–2017 Ultreia.io. All rights reserved.