Package jaxx.runtime.swing
Class HidorButton
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.AbstractButton
-
- javax.swing.JToggleButton
-
- jaxx.runtime.swing.HidorButton
-
- All Implemented Interfaces:
ImageObserver,ItemSelectable,MenuContainer,Serializable,Accessible,SwingConstants,JAXXContext,JAXXObject
public class HidorButton extends JToggleButton implements JAXXObject
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.JToggleButton
JToggleButton.AccessibleJToggleButton, JToggleButton.ToggleButtonModel
-
Nested classes/interfaces inherited from class javax.swing.AbstractButton
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener
-
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
-
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
-
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Object>$activeBindingsprotected Map<String,JAXXBinding>$bindingsprotected Map<String,Object>$bindingSourcesprotected Map<String,Object>$objectMapprotected Map<?,?>$previousValuesstatic StringBINDING_HIDOR_ICONstatic StringBINDING_HIDOR_TEXTstatic StringBINDING_HIDOR_TOOL_TIP_TEXTprotected JAXXContextdelegateContextprotected StringhideTextprotected StringhideTipprotected HidorButtonhidorprotected HidorButtonHandlermyHandlerstatic StringPROPERTY_HIDE_TEXTstatic StringPROPERTY_HIDE_TIPstatic StringPROPERTY_SHOW_TEXTstatic StringPROPERTY_SHOW_TIPstatic StringPROPERTY_TARGET_VISIBLEprotected StringshowTextprotected StringshowTipprotected JComponenttargetprotected BooleantargetVisible-
Fields inherited from class javax.swing.AbstractButton
actionListener, BORDER_PAINTED_CHANGED_PROPERTY, changeEvent, changeListener, CONTENT_AREA_FILLED_CHANGED_PROPERTY, DISABLED_ICON_CHANGED_PROPERTY, DISABLED_SELECTED_ICON_CHANGED_PROPERTY, FOCUS_PAINTED_CHANGED_PROPERTY, HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, HORIZONTAL_TEXT_POSITION_CHANGED_PROPERTY, ICON_CHANGED_PROPERTY, itemListener, MARGIN_CHANGED_PROPERTY, MNEMONIC_CHANGED_PROPERTY, model, MODEL_CHANGED_PROPERTY, PRESSED_ICON_CHANGED_PROPERTY, ROLLOVER_ENABLED_CHANGED_PROPERTY, ROLLOVER_ICON_CHANGED_PROPERTY, ROLLOVER_SELECTED_ICON_CHANGED_PROPERTY, SELECTED_ICON_CHANGED_PROPERTY, TEXT_CHANGED_PROPERTY, VERTICAL_ALIGNMENT_CHANGED_PROPERTY, VERTICAL_TEXT_POSITION_CHANGED_PROPERTY
-
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
-
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
-
-
Constructor Summary
Constructors Constructor Description HidorButton()HidorButton(String param0)HidorButton(String param0, boolean param1)HidorButton(String param0, Icon param1)HidorButton(String param0, Icon param1, boolean param2)HidorButton(Action param0)HidorButton(Icon param0)HidorButton(Icon param0, boolean param1)HidorButton(JAXXContext parentContext)HidorButton(JAXXContext parentContext, String param1)HidorButton(JAXXContext parentContext, String param1, boolean param2)HidorButton(JAXXContext parentContext, String param1, Icon param2)HidorButton(JAXXContext parentContext, String param1, Icon param2, boolean param3)HidorButton(JAXXContext parentContext, Action param1)HidorButton(JAXXContext parentContext, Icon param1)HidorButton(JAXXContext parentContext, Icon param1, boolean param2)
-
Method Summary
-
Methods inherited from class javax.swing.JToggleButton
getAccessibleContext, getUIClassID, paramString, requestFocus, requestFocusInWindow, updateUI
-
Methods inherited from class javax.swing.AbstractButton
actionPropertyChanged, addActionListener, addChangeListener, addImpl, addItemListener, checkHorizontalKey, checkVerticalKey, configurePropertiesFromAction, createActionListener, createActionPropertyChangeListener, createChangeListener, createItemListener, doClick, doClick, fireActionPerformed, fireItemStateChanged, fireStateChanged, getAction, getActionCommand, getActionListeners, getChangeListeners, getDisabledIcon, getDisabledSelectedIcon, getDisplayedMnemonicIndex, getHideActionText, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getIconTextGap, getItemListeners, getLabel, getMargin, getMnemonic, getModel, getMultiClickThreshhold, getPressedIcon, getRolloverIcon, getRolloverSelectedIcon, getSelectedIcon, getSelectedObjects, getText, getUI, getVerticalAlignment, getVerticalTextPosition, imageUpdate, init, isBorderPainted, isContentAreaFilled, isFocusPainted, isRolloverEnabled, isSelected, paintBorder, removeActionListener, removeChangeListener, removeItemListener, removeNotify, setAction, setActionCommand, setBorderPainted, setContentAreaFilled, setDisabledIcon, setDisabledSelectedIcon, setDisplayedMnemonicIndex, setEnabled, setFocusPainted, setHideActionText, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextGap, setLabel, setLayout, setMargin, setMnemonic, setMnemonic, setModel, setMultiClickThreshhold, setPressedIcon, setRolloverEnabled, setRolloverIcon, setRolloverSelectedIcon, setSelected, setSelectedIcon, setText, setUI, setVerticalAlignment, setVerticalTextPosition
-
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusDownCycle, validate, validateTree
-
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jaxx.runtime.JAXXObject
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
-
-
-
-
Field Detail
-
PROPERTY_HIDE_TEXT
public static final String PROPERTY_HIDE_TEXT
- See Also:
- Constant Field Values
-
PROPERTY_HIDE_TIP
public static final String PROPERTY_HIDE_TIP
- See Also:
- Constant Field Values
-
PROPERTY_SHOW_TEXT
public static final String PROPERTY_SHOW_TEXT
- See Also:
- Constant Field Values
-
PROPERTY_SHOW_TIP
public static final String PROPERTY_SHOW_TIP
- See Also:
- Constant Field Values
-
PROPERTY_TARGET_VISIBLE
public static final String PROPERTY_TARGET_VISIBLE
- See Also:
- Constant Field Values
-
BINDING_HIDOR_ICON
public static final String BINDING_HIDOR_ICON
- See Also:
- Constant Field Values
-
BINDING_HIDOR_TEXT
public static final String BINDING_HIDOR_TEXT
- See Also:
- Constant Field Values
-
BINDING_HIDOR_TOOL_TIP_TEXT
public static final String BINDING_HIDOR_TOOL_TIP_TEXT
- See Also:
- Constant Field Values
-
$bindings
protected final Map<String,JAXXBinding> $bindings
-
$previousValues
protected Map<?,?> $previousValues
-
delegateContext
protected final JAXXContext delegateContext
-
hideText
protected String hideText
-
hideTip
protected String hideTip
-
hidor
protected HidorButton hidor
-
myHandler
protected HidorButtonHandler myHandler
-
showText
protected String showText
-
showTip
protected String showTip
-
targetVisible
protected Boolean targetVisible
-
target
protected JComponent target
-
-
Constructor Detail
-
HidorButton
public HidorButton()
-
HidorButton
public HidorButton(JAXXContext parentContext)
-
HidorButton
public HidorButton(String param0)
-
HidorButton
public HidorButton(JAXXContext parentContext, String param1)
-
HidorButton
public HidorButton(Icon param0, boolean param1)
-
HidorButton
public HidorButton(JAXXContext parentContext, Icon param1, boolean param2)
-
HidorButton
public HidorButton(Icon param0)
-
HidorButton
public HidorButton(JAXXContext parentContext, Icon param1)
-
HidorButton
public HidorButton(JAXXContext parentContext, String param1, Icon param2, boolean param3)
-
HidorButton
public HidorButton(Action param0)
-
HidorButton
public HidorButton(JAXXContext parentContext, Action param1)
-
HidorButton
public HidorButton(String param0, boolean param1)
-
HidorButton
public HidorButton(JAXXContext parentContext, String param1, boolean param2)
-
HidorButton
public HidorButton(JAXXContext parentContext, String param1, Icon param2)
-
-
Method Detail
-
getTarget
public JComponent getTarget()
-
setTarget
public void setTarget(JComponent target)
-
setExpandIcon
public void setExpandIcon(Icon icon)
-
setHideIcon
public void setHideIcon(Icon icon)
-
$getJAXXObjectDescriptor
public static JAXXObjectDescriptor $getJAXXObjectDescriptor()
-
applyDataBinding
public void applyDataBinding(String $binding)
- Specified by:
applyDataBindingin interfaceJAXXObject
-
firePropertyChange
public void firePropertyChange(String propertyName, Object oldValue, Object newValue)
- Specified by:
firePropertyChangein interfaceJAXXObject- Overrides:
firePropertyChangein classComponent
-
get$objectMap
public Map<String,Object> get$objectMap()
- Specified by:
get$objectMapin interfaceJAXXObject
-
getDataBinding
public JAXXBinding getDataBinding(String bindingId)
- Specified by:
getDataBindingin interfaceJAXXObject
-
getDataBindings
public JAXXBinding[] getDataBindings()
- Specified by:
getDataBindingsin interfaceJAXXObject
-
getObjectById
public Object getObjectById(String id)
- Specified by:
getObjectByIdin interfaceJAXXObject
-
processDataBinding
public void processDataBinding(String $binding, boolean $force)
- Specified by:
processDataBindingin interfaceJAXXObject
-
processDataBinding
public void processDataBinding(String $binding)
- Specified by:
processDataBindingin interfaceJAXXObject
-
registerDataBinding
public void registerDataBinding(JAXXBinding binding)
- Specified by:
registerDataBindingin interfaceJAXXObject
-
removeDataBinding
public void removeDataBinding(String $binding)
- Specified by:
removeDataBindingin interfaceJAXXObject
-
getContextValue
public <T> T getContextValue(Class<T> clazz)
- Specified by:
getContextValuein interfaceJAXXContext
-
getContextValue
public <T> T getContextValue(Class<T> clazz, String name)
- Specified by:
getContextValuein interfaceJAXXContext
-
getDelegateContext
public JAXXContext getDelegateContext()
- Specified by:
getDelegateContextin interfaceJAXXObject
-
getParentContainer
public <O extends Container> O getParentContainer(Class<O> clazz)
- Specified by:
getParentContainerin interfaceJAXXObject
-
getParentContainer
public <O extends Container> O getParentContainer(Object source, Class<O> clazz)
- Specified by:
getParentContainerin interfaceJAXXObject
-
removeContextValue
public <T> void removeContextValue(Class<T> clazz)
- Specified by:
removeContextValuein interfaceJAXXContext
-
removeContextValue
public <T> void removeContextValue(Class<T> clazz, String name)
- Specified by:
removeContextValuein interfaceJAXXContext
-
setContextValue
public <T> void setContextValue(T o)
- Specified by:
setContextValuein interfaceJAXXContext
-
setContextValue
public <T> void setContextValue(T o, String name)- Specified by:
setContextValuein interfaceJAXXContext
-
doActionPerformed__on__hidor
public void doActionPerformed__on__hidor(ActionEvent event)
-
getHideText
public String getHideText()
-
getHideTip
public String getHideTip()
-
getMyHandler
public HidorButtonHandler getMyHandler()
-
getShowText
public String getShowText()
-
getShowTip
public String getShowTip()
-
getTargetVisible
public Boolean getTargetVisible()
-
isTargetVisible
public Boolean isTargetVisible()
-
setHideText
public void setHideText(String hideText)
-
setHideTip
public void setHideTip(String hideTip)
-
setShowText
public void setShowText(String showText)
-
setShowTip
public void setShowTip(String showTip)
-
setTargetVisible
public void setTargetVisible(Boolean targetVisible)
-
createHideText
protected void createHideText()
-
createHideTip
protected void createHideTip()
-
createMyHandler
protected void createMyHandler()
-
createShowText
protected void createShowText()
-
createShowTip
protected void createShowTip()
-
createTargetVisible
protected void createTargetVisible()
-
-