public class JComponentHpr<T extends javax.swing.JComponent> extends SwingHelper<T>
Constructor and Description |
---|
JComponentHpr() |
Modifier and Type | Method and Description |
---|---|
void |
addBinding(T anObj,
Binding aBinding)
Adds the individual binding at the given index to given component.
|
protected SwingEventAdapter |
createEventAdapter(T aComponent)
Creates the SwingEventAdapter for component.
|
java.lang.String |
getAutosizing(T aComponent)
Returns the autosizing for the given component.
|
Binding |
getBinding(T anObj,
int anIndex)
Returns the individual binding at the given index for given component.
|
int |
getBindingCount(T anObj)
Returns the number of bindings associated with given component.
|
java.util.List<Binding> |
getBindings(T anObj,
boolean doCreate)
Returns the list of RibsBindings, with option to create, if missing.
|
protected javax.swing.event.ChangeListener |
getChangeListener()
Returns a change listener suitable for some controls.
|
java.lang.Object |
getChild(T aComp,
int anIndex)
Returns the individual child object for given object and index.
|
int |
getChildCount(T aComp)
Returns the number of children for given object.
|
java.lang.Object |
getConstraints(T aComponent)
Returns the constraints for component.
|
SwingEventAdapter |
getEventAdapter(T aComponent,
boolean doCreate)
Returns the SwingEventAdapter for component.
|
java.lang.String |
getName(T anObj)
Returns the name of the given component.
|
UIOwner |
getOwner(T anObj)
Returns given component's owner.
|
java.lang.Object |
getParent(T anObj)
Returns the parent object for given object.
|
protected java.util.List<java.lang.String> |
getPropertyNamesImpl(T anObj)
Returns the property names for JComponents.
|
boolean |
getSendActionOnFocusLost(T aComponent)
Returns whether this component should send action when focus lost.
|
boolean |
getSendActionOnFocusLostDefault(T aComponent)
Returns whether given component defaults to send action when it loses focus.
|
void |
initUI(T anObj,
UIOwner anOwner)
Initializes newly created object.
|
boolean |
isEnabled(T anObj,
UIEvent.Type aType)
Returns whether given event is enabled.
|
Binding |
removeBinding(T anObj,
int anIndex)
Removes the binding at the given index from given component.
|
void |
setConstraints(T aComponent,
java.lang.Object theConstraints)
Sets the constraints for component.
|
void |
setEnabled(T anObj,
UIEvent.Type aType,
boolean aValue)
Sets whether given event is enabled.
|
void |
setOwner(T anObj,
UIOwner anOwner)
Sets given component's owner.
|
void |
setSendActionOnFocusLost(T aComponent,
java.lang.Boolean aValue)
Sets whether this component should sends action when it loses focus.
|
getHelper, getSwingHelper, getSwingHelper
enableEvents, getAction, getBinding, getChild, getItemDisplayKey, getItems, getKeyValue, getPropertyNameMapped, getPropertyNames, getSelectedIndex, getSelectedIndexes, getSelectedIndexs, getSelectedItem, getText, getValue, initUIDeep, isEnabled, isPropertyName, isValueAdjusting, removeBinding, setAction, setEnabled, setItemDisplayKey, setItems, setItems, setKeyValue, setSelectedIndex, setSelectedIndexes, setSelectedItem, setText, setValue
public java.lang.String getName(T anObj)
public java.lang.Object getParent(T anObj)
public int getChildCount(T aComp)
getChildCount
in class UIHelper<T extends javax.swing.JComponent>
public java.lang.Object getChild(T aComp, int anIndex)
public java.lang.Object getConstraints(T aComponent)
public void setConstraints(T aComponent, java.lang.Object theConstraints)
public java.lang.String getAutosizing(T aComponent)
protected javax.swing.event.ChangeListener getChangeListener()
public boolean getSendActionOnFocusLost(T aComponent)
public void setSendActionOnFocusLost(T aComponent, java.lang.Boolean aValue)
public boolean getSendActionOnFocusLostDefault(T aComponent)
public int getBindingCount(T anObj)
getBindingCount
in class UIHelper<T extends javax.swing.JComponent>
public Binding getBinding(T anObj, int anIndex)
getBinding
in class UIHelper<T extends javax.swing.JComponent>
public java.util.List<Binding> getBindings(T anObj, boolean doCreate)
public void addBinding(T anObj, Binding aBinding)
addBinding
in class UIHelper<T extends javax.swing.JComponent>
public Binding removeBinding(T anObj, int anIndex)
removeBinding
in class UIHelper<T extends javax.swing.JComponent>
protected java.util.List<java.lang.String> getPropertyNamesImpl(T anObj)
getPropertyNamesImpl
in class UIHelper<T extends javax.swing.JComponent>
public boolean isEnabled(T anObj, UIEvent.Type aType)
public void setEnabled(T anObj, UIEvent.Type aType, boolean aValue)
setEnabled
in class UIHelper<T extends javax.swing.JComponent>
public SwingEventAdapter getEventAdapter(T aComponent, boolean doCreate)
protected SwingEventAdapter createEventAdapter(T aComponent)