|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
leon.view.win.swing.component.LyJMultiSelector
public class LyJMultiSelector
This class defines a component containing two lists and a set of buttons. It allows to choose some elements of the first list and to put them in the second one.
Nested Class Summary | |
---|---|
class |
LyJMultiSelector._LyJCellRenderer
This class implements a customized renderer for list cell. |
class |
LyJMultiSelector._LyJMultiSelectorKeyListener
Multiselector key listener. |
class |
LyJMultiSelector._LyJSpecialScrollPane
This class implements the preferred size of its super component. |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.BaselineResizeBehavior |
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Fields inherited from class javax.swing.JComponent |
---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
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 |
Constructor Summary | |
---|---|
LyJMultiSelector(LyEnvironment environment,
int height)
Creates a multiselector object with the specified attributes. |
|
LyJMultiSelector(LyEnvironment environment,
int height,
boolean ordered)
Creates a multiselector object with the specified attributes. |
Method Summary | |
---|---|
void |
actionPerformed(LyActionEvent actionEvent)
(non-Javadoc). |
void |
addItemAt(LyLink link,
int index)
Adds the specified link at the specified position. |
void |
addKeyListener(java.awt.event.KeyListener listener)
Adds the specified key listener to both the selected and unselected lists. |
void |
checkButtons()
Updates the buttons whether they are enabled or not. |
LyActionTransmitter |
getActionTransmitter()
(non-Javadoc). |
LyJListComponent |
getListComponent(int i)
Returns the list associated with the given multiselector number. |
java.awt.Dimension |
getListPreferredSize()
Gets the maximum size between the two lists. |
java.awt.Dimension |
getMinimumSize()
(non-Javadoc). |
java.awt.Dimension |
getPreferredSize()
(non-Javadoc). |
LySelectionTransmitter |
getSelectionTransmitter()
This multiselector doesn't handle selection events, so it has no selection transmitter. |
java.lang.String |
getValue()
Gets the list of selected elements' id. |
void |
select(LyLink link)
Adds the specified link to the right list and removes it from the left list. |
void |
selectionPerformed(LySelectionEvent selectionEvent)
(non-Javadoc). |
void |
set(java.util.Vector<LyLink> unSelectedLinks,
java.util.Vector<LyLink> selectedLinks)
Sets the content of this selector. |
void |
setBackground(java.awt.Color color)
(non-Javadoc). |
void |
setEnabled(boolean status)
(non-Javadoc). |
void |
setFont(java.awt.Font font)
(non-Javadoc). |
void |
unselect(LyLink link)
Removes the specified link from the right list and adds it to the left list. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, 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, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyJMultiSelector(LyEnvironment environment, int height)
environment
- the current environmentheight
- the height of this componentpublic LyJMultiSelector(LyEnvironment environment, int height, boolean ordered)
environment
- the current environmentheight
- the height of this componentordered
- indicates whether this selector is ordered or notMethod Detail |
---|
public java.awt.Dimension getMinimumSize()
getMinimumSize
in class javax.swing.JComponent
Component.getMinimumSize()
public java.awt.Dimension getListPreferredSize()
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class javax.swing.JComponent
Component.getPreferredSize()
public void checkButtons()
public void set(java.util.Vector<LyLink> unSelectedLinks, java.util.Vector<LyLink> selectedLinks)
unSelectedLinks
- list of unselected links for the left listselectedLinks
- lift of selected links for the right listpublic void select(LyLink link)
link
- the link to selectpublic void unselect(LyLink link)
link
- the link to unselectpublic void addItemAt(LyLink link, int index)
link
- the link to addindex
- the position of the link to addpublic void selectionPerformed(LySelectionEvent selectionEvent)
selectionPerformed
in interface LySelectionListener
selectionEvent
- description of the selection which has occuredLySelectionListener.selectionPerformed(leon.view.event.LySelectionEvent)
public void actionPerformed(LyActionEvent actionEvent)
actionPerformed
in interface LyActionListener
LyActionListener.actionPerformed(leon.view.event.LyActionEvent)
public void setEnabled(boolean status)
setEnabled
in class javax.swing.JComponent
Component.setEnabled(boolean)
public void setBackground(java.awt.Color color)
setBackground
in class javax.swing.JComponent
Component.setBackground(java.awt.Color)
public void setFont(java.awt.Font font)
setFont
in class javax.swing.JComponent
Component.setFont(java.awt.Font)
public LyJListComponent getListComponent(int i)
null
.
i
- index of the listbox: 0 for the first one, 1 for the second one
null
if not foundpublic java.lang.String getValue()
LyJListComponent.ITEM_SEP
.public LyActionTransmitter getActionTransmitter()
getActionTransmitter
in interface LyEventTransmitter
LyEventTransmitter.getActionTransmitter()
public LySelectionTransmitter getSelectionTransmitter()
getSelectionTransmitter
in interface LyEventTransmitter
null
LyEventTransmitter.getSelectionTransmitter()
public void addKeyListener(java.awt.event.KeyListener listener)
addKeyListener
in class java.awt.Component
Component.addKeyListener(java.awt.event.KeyListener)
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |