jaxx.compiler.tags.swing
Class JRadioButtonHandler
java.lang.Object
jaxx.compiler.tags.DefaultObjectHandler
jaxx.compiler.tags.DefaultComponentHandler
jaxx.compiler.tags.swing.JRadioButtonHandler
- All Implemented Interfaces:
- TagHandler
public class JRadioButtonHandler
- extends DefaultComponentHandler
| Fields inherited from class jaxx.compiler.tags.DefaultComponentHandler |
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, ICON_ATTRIBUTE, ICON_IMAGE_ATTRIBUTE, log, NAME_ATTRIBUTE, TITLED_BORDER_PREFIX, WIDTH_ATTRIBUTE, X_ATTRIBUTE, Y_ATTRIBUTE |
| Fields inherited from class jaxx.compiler.tags.DefaultObjectHandler |
ABSTRACT_ATTRIBUTE, BORDER_LAYOUT_PREFIX, CONSTRAINTS_ATTRIBUTE, CONSTRUCTOR_PARAMS_ATTRIBUTE, DECORATOR_ATTRIBUTE, DISPLAYED_MNEMONIC_ATTRIBUTE, DISPLAYED_MNEMONIC_INDEX_ATTRIBUTE, GENERICTYPE_ATTRIBUTE, GRID_LAYOUT_PREFIX, ID_ATTRIBUTE, IMPLEMENTS_ATTRIBUTE, INITIALIZER_ATTRIBUTE, JAVA_BEAN_ATTRIBUTE, jaxxBeanInfo, LAYOUT_ATTRIBUTE, MNEMONIC_ATTRIBUTE, objectMap, STYLE_CLASS_ATTRIBUTE, SUPER_GENERIC_TYPE_ATTRIBUTE |
| Methods inherited from class jaxx.compiler.tags.DefaultComponentHandler |
closeComponent, compileFirstPass, compileSecondPass, constantValue, getContainerDelegate, getGetPropertyCode, init, isContainer, isPropertyInherited, openComponent, scanAttributesForDependencies, setAttribute, setDefaults |
| Methods inherited from class jaxx.compiler.tags.DefaultObjectHandler |
addEventHandler, addProxyEventInfo, addProxyEventInfo, addProxyEventInfo, addProxyEventInfo, applyStylesheets, compileChildrenFirstPass, compileChildrenSecondPass, compileChildTagFirstPass, compileChildTagSecondPass, convertFromString, createCompiledObject, getAttributeComparator, getAttributeOrdering, getBeanClass, getEventClass, getEventInfo, getJAXXBeanInfo, getJAXXBeanInfo, isEventHandlerName, registerCompiledObject, safeInit, setAttributes, toString |
JRadioButtonHandler
public JRadioButtonHandler(ClassDescriptor beanClass)
configureProxyEventInfo
protected void configureProxyEventInfo()
- Description copied from class:
DefaultObjectHandler
- Configures the event handling for members which do not fire
PropertyChangeEvent when
modified. The default implementation does nothing. Subclasses should override this method to call
addProxyEventInfo for each member which requires special handling.
- Overrides:
configureProxyEventInfo in class DefaultComponentHandler
getPropertyType
public ClassDescriptor getPropertyType(CompiledObject object,
String name,
JAXXCompiler compiler)
throws CompilerException
- Description copied from class:
DefaultObjectHandler
- Returns the type of the named property. This is the return type of the property's
get method;
for instance JLabel's text property is a String.
- Overrides:
getPropertyType in class DefaultComponentHandler
- Parameters:
object - the object being compiledname - the simple JavaBeans-style name of the propertycompiler - the current JAXXCompiler
- Returns:
- the property's type
- Throws:
CompilerException - if the type cannot be determined
isMemberBound
public boolean isMemberBound(String name)
throws UnsupportedAttributeException
- Overrides:
isMemberBound in class DefaultObjectHandler
- Parameters:
name - name of the property
- Returns:
true 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.
- Throws:
UnsupportedAttributeException - if attribute is not supported
setProperty
public void setProperty(CompiledObject object,
String name,
Object value,
JAXXCompiler compiler)
- Description copied from class:
DefaultObjectHandler
- Appends Java code to a
CompiledObject 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).
- Overrides:
setProperty in class DefaultObjectHandler
- Parameters:
object - the object being modifiedname - the name of the property to setvalue - the value to set the property tocompiler - the current JAXXCompiler
getSetPropertyCode
public String getSetPropertyCode(String id,
String name,
String valueCode,
JAXXCompiler compiler)
throws CompilerException
- Description copied from class:
DefaultObjectHandler
- Returns a snippet of Java code which will set an object property at runtime. Typically the code is
just a call to the property's
set method, but it can be arbitrarily complex.
- Overrides:
getSetPropertyCode in class DefaultComponentHandler
- Parameters:
id - 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 JAXXCompiler
- Returns:
- the snippet
- Throws:
CompilerException - if a compilation error occurs
Copyright © 2008-2012 CodeLutin. All Rights Reserved.