Groovy Documentation

simplejpa.swing
[Groovy] Class TagChooser

java.lang.Object
  java.awt.Component
      java.awt.Container
          javax.swing.JComponent
              javax.swing.JPanel
                  simplejpa.swing.TagChooser

class TagChooser
extends JPanel

Nested Class Summary
class TagChooser.BorderFocusListener

class TagChooser.ComboBoxTemplateRenderer

class TagChooser.PanelSelectedItems

class TagChooser.SelectedItem

 
Field Summary
private static org.slf4j.Logger LOG

private static ImageIcon addAllIcon

private static ImageIcon addAllRolloverIcon

private static ImageIcon addIcon

private static ImageIcon addRolloverIcon

private JButton btnAdd

private JButton btnAddAll

private JComboBox cboInput

private TagChooser.ComboBoxTemplateRenderer comboBoxTemplateRenderer

private TagChooser.PanelSelectedItems panelSelectedItems

private static ImageIcon removeIcon

private static ImageIcon removeRolloverIcon

 
Fields inherited from class JPanel
WHEN_FOCUSED, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_WINDOW, UNDEFINED_CONDITION, TOOL_TIP_TEXT_KEY, TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, WIDTH, HEIGHT, PROPERTIES, SOMEBITS, FRAMEBITS, ALLBITS, ERROR, ABORT
 
Fields inherited from class JComponent
WHEN_FOCUSED, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_WINDOW, UNDEFINED_CONDITION, TOOL_TIP_TEXT_KEY, TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, WIDTH, HEIGHT, PROPERTIES, SOMEBITS, FRAMEBITS, ALLBITS, ERROR, ABORT
 
Property Summary
TagChooserModel model

Closure selectedValueChanged

def templateString

 
Constructor Summary
TagChooser()

 
Method Summary
private void addAllItem()

private void addSelectedItem()

void setModel(TagChooserModel model)

void setTemplateString(def templateString)

 
Methods inherited from class JPanel
getAccessibleContext, getUI, getUIClassID, setUI, updateUI, contains, getLocation, print, getSize, isOpaque, disable, enable, addNotify, firePropertyChange, firePropertyChange, firePropertyChange, removeNotify, setBackground, getBounds, getHeight, getListeners, getMinimumSize, getPreferredSize, getRootPane, getWidth, getX, getY, isValidateRoot, paint, requestFocus, requestFocus, reshape, setMinimumSize, setOpaque, setVisible, getAlignmentX, getAlignmentY, getInsets, getInsets, getMaximumSize, setFocusTraversalKeys, setFont, update, getBaseline, getBaselineResizeBehavior, getFontMetrics, getGraphics, isDoubleBuffered, printAll, repaint, repaint, requestFocusInWindow, revalidate, setEnabled, setForeground, setMaximumSize, setPreferredSize, addVetoableChangeListener, getVetoableChangeListeners, removeVetoableChangeListener, getDefaultLocale, getTransferHandler, setTransferHandler, putClientProperty, setAlignmentX, addAncestorListener, computeVisibleRect, createToolTip, getActionForKeyStroke, getActionMap, getAncestorListeners, getAutoscrolls, getBorder, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, grabFocus, isLightweightComponent, isManagingFocus, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, paintImmediately, paintImmediately, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, requestDefaultFocus, resetKeyboardActions, scrollRectToVisible, setActionMap, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setInheritsPopupMenu, setInputMap, setInputVerifier, setNextFocusableComponent, setRequestFocusEnabled, setToolTipText, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, add, add, add, add, add, remove, remove, list, list, removeAll, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, getComponent, getComponentCount, getFocusTraversalKeys, getFocusTraversalPolicy, invalidate, isFocusCycleRoot, isFocusCycleRoot, setFocusCycleRoot, setLayout, validate, addContainerListener, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponentAt, getComponentAt, getComponentZOrder, getComponents, getContainerListeners, getLayout, getMousePosition, insets, isAncestorOf, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, locate, minimumSize, paintComponents, preferredSize, printComponents, removeContainerListener, setComponentZOrder, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusDownCycle, toString, getName, add, contains, size, getLocation, getParent, remove, setName, list, list, list, getSize, isValid, setSize, setSize, resize, resize, location, enable, action, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getCursor, getToolkit, getTreeLock, isDisplayable, setCursor, getFont, postEvent, getBounds, getFocusCycleRootAncestor, getGraphicsConfiguration, getInputContext, getLocale, getLocationOnScreen, getPeer, handleEvent, hide, isMinimumSizeSet, isShowing, isVisible, setBounds, setBounds, setLocation, setLocation, show, show, dispatchEvent, getMousePosition, isEnabled, isFocusOwner, isFocusable, isLightweight, isMaximumSizeSet, isPreferredSizeSet, transferFocus, transferFocusBackward, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, createImage, createImage, createVolatileImage, createVolatileImage, enableInputMethods, getColorModel, getComponentListeners, getComponentOrientation, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getForeground, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getPropertyChangeListeners, getPropertyChangeListeners, gotFocus, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isFocusTraversable, isFontSet, isForegroundSet, keyDown, keyUp, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, setComponentOrientation, setDropTarget, setFocusTraversalKeysEnabled, setFocusable, setIgnoreRepaint, setLocale, transferFocusUpCycle, getClass, hashCode, equals, notify, notifyAll, wait, wait, wait
 
Methods inherited from class JComponent
contains, getLocation, print, getSize, isOpaque, disable, enable, addNotify, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, removeNotify, setBackground, getBounds, getHeight, getListeners, getMinimumSize, getPreferredSize, getRootPane, getWidth, getX, getY, isValidateRoot, paint, requestFocus, requestFocus, reshape, setMinimumSize, setOpaque, setVisible, getAlignmentX, getAlignmentY, getInsets, getInsets, getMaximumSize, setFocusTraversalKeys, setFont, update, getBaseline, getBaselineResizeBehavior, getFontMetrics, getGraphics, isDoubleBuffered, printAll, repaint, repaint, requestFocusInWindow, revalidate, setEnabled, setForeground, setMaximumSize, setPreferredSize, addVetoableChangeListener, getVetoableChangeListeners, removeVetoableChangeListener, getDefaultLocale, getTransferHandler, setTransferHandler, getUIClassID, putClientProperty, setAlignmentX, updateUI, addAncestorListener, computeVisibleRect, createToolTip, getActionForKeyStroke, getActionMap, getAncestorListeners, getAutoscrolls, getBorder, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, grabFocus, isLightweightComponent, isManagingFocus, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, paintImmediately, paintImmediately, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, requestDefaultFocus, resetKeyboardActions, scrollRectToVisible, setActionMap, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setInheritsPopupMenu, setInputMap, setInputVerifier, setNextFocusableComponent, setRequestFocusEnabled, setToolTipText, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, add, add, add, add, add, remove, remove, list, list, removeAll, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, getComponent, getComponentCount, getFocusTraversalKeys, getFocusTraversalPolicy, invalidate, isFocusCycleRoot, isFocusCycleRoot, setFocusCycleRoot, setLayout, validate, addContainerListener, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponentAt, getComponentAt, getComponentZOrder, getComponents, getContainerListeners, getLayout, getMousePosition, insets, isAncestorOf, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, locate, minimumSize, paintComponents, preferredSize, printComponents, removeContainerListener, setComponentZOrder, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusDownCycle, toString, getName, add, contains, size, getLocation, getParent, remove, setName, list, list, list, getSize, isValid, setSize, setSize, resize, resize, location, enable, action, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getCursor, getToolkit, getTreeLock, isDisplayable, setCursor, getFont, postEvent, getBounds, getFocusCycleRootAncestor, getGraphicsConfiguration, getInputContext, getLocale, getLocationOnScreen, getPeer, handleEvent, hide, isMinimumSizeSet, isShowing, isVisible, setBounds, setBounds, setLocation, setLocation, show, show, dispatchEvent, getMousePosition, isEnabled, isFocusOwner, isFocusable, isLightweight, isMaximumSizeSet, isPreferredSizeSet, transferFocus, transferFocusBackward, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, createImage, createImage, createVolatileImage, createVolatileImage, enableInputMethods, getColorModel, getComponentListeners, getComponentOrientation, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getForeground, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getPropertyChangeListeners, getPropertyChangeListeners, gotFocus, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isFocusTraversable, isFontSet, isForegroundSet, keyDown, keyUp, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, setComponentOrientation, setDropTarget, setFocusTraversalKeysEnabled, setFocusable, setIgnoreRepaint, setLocale, transferFocusUpCycle, getClass, hashCode, equals, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG

private static final org.slf4j.Logger LOG


addAllIcon

private static final ImageIcon addAllIcon


addAllRolloverIcon

private static final ImageIcon addAllRolloverIcon


addIcon

private static final ImageIcon addIcon


addRolloverIcon

private static final ImageIcon addRolloverIcon


btnAdd

private JButton btnAdd


btnAddAll

private JButton btnAddAll


cboInput

private JComboBox cboInput


comboBoxTemplateRenderer

private TagChooser.ComboBoxTemplateRenderer comboBoxTemplateRenderer


panelSelectedItems

private TagChooser.PanelSelectedItems panelSelectedItems


removeIcon

private static final ImageIcon removeIcon


removeRolloverIcon

private static final ImageIcon removeRolloverIcon


 
Property Detail

model

TagChooserModel model


selectedValueChanged

Closure selectedValueChanged


templateString

def templateString


 
Constructor Detail

TagChooser

TagChooser()


 
Method Detail

addAllItem

private void addAllItem()


addSelectedItem

private void addSelectedItem()


setModel

void setModel(TagChooserModel model)


setTemplateString

void setTemplateString(def templateString)


 

Groovy Documentation