|
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.LyJSelector
public class LyJSelector
This class defines a component containing a text field and a set of buttons.
TextField
,
Serialized FormNested Class Summary |
---|
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 | |
---|---|
LyJSelector(java.lang.String value,
LyEnvironment env,
boolean useArrows)
Creates a new selector component with the specified text value. |
Method Summary | |
---|---|
void |
actionPerformed(LyActionEvent actionEvent)
(non-Javadoc). |
LyJButton |
addButton(java.awt.Image image,
java.lang.String label)
Creates a button with the specified attributes and registers the action listeners then adds it to this component's buttons panel. |
void |
addKeyListener(java.awt.event.KeyListener listener)
Adds a key listener on the text field. |
void |
focusGained(java.awt.event.FocusEvent e)
(non-Javadoc). |
void |
focusLost(java.awt.event.FocusEvent e)
(non-Javadoc). |
LyActionTransmitter |
getActionTransmitter()
(non-Javadoc). |
javax.swing.JPanel |
getButtons()
Gets the buttons panel of this component. |
java.awt.Dimension |
getPreferredSize()
(non-Javadoc). |
LySelectionTransmitter |
getSelectionTransmitter()
This selector doesn't handle selection events, so it has no selection transmitter. |
LyJTextField |
getTextField()
Gets the text field of this component. |
java.lang.String |
getValue()
(non-Javadoc). |
boolean |
isEditable()
Checks if this component is editable or not. |
boolean |
isIdle()
(non-Javadoc). |
void |
keyPressed(java.awt.event.KeyEvent evt)
(non-Javadoc). |
void |
keyReleased(java.awt.event.KeyEvent evt)
Nothing is done. |
void |
keyTyped(java.awt.event.KeyEvent evt)
Nothing is done. |
void |
requestFocus()
(non-Javadoc). |
void |
setAutorizeEnabledButtons(boolean enable)
Autorize the button to be enabled |
void |
setBackColor(java.awt.Color color)
Sets the background color. |
void |
setBackground(java.awt.Color color)
(non-Javadoc). |
void |
setComponent(java.awt.Component comp)
Adds the specified component as the "East" position of this component. |
void |
setDisabledColor(java.awt.Color color)
Sets the disabled color. |
void |
setEditable(boolean editable)
Sets the editable status of the field item. |
void |
setEnabled(boolean enable)
(non-Javadoc). |
void |
setEnabledColor(java.awt.Color color)
Sets the enabled color. |
void |
setFont(java.awt.Font font)
(non-Javadoc). |
void |
setIdle(boolean status)
(non-Javadoc). |
void |
setMaxChars(int maxChars)
Sets the maximum number of characters of this component's text area. |
void |
setNCols(int nCols)
Sets the number of text columns. |
void |
setValue(java.lang.String str)
(non-Javadoc). |
void |
setValue(java.lang.String str,
boolean notify)
Changes the value of the text component. |
void |
setWidth(int width)
Sets the width of this component. |
LyJTextField |
textFieldFactory()
Creates and initializes a new TextField instance. |
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, getMinimumSize, 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, 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 LyJSelector(java.lang.String value, LyEnvironment env, boolean useArrows)
value
- the text value of this componentenv
- the current environmentMethod Detail |
---|
public LyJButton addButton(java.awt.Image image, java.lang.String label)
image
- the image to associate to the buttonlabel
- the label of this button
public void setEnabledColor(java.awt.Color color)
color
- the new enabled colorpublic void setDisabledColor(java.awt.Color color)
color
- the new disabled colorpublic void setComponent(java.awt.Component comp)
comp
- the component to addpublic void setBackColor(java.awt.Color color)
color
- the new background colorpublic void actionPerformed(LyActionEvent actionEvent)
actionPerformed
in interface LyActionListener
LyActionListener.actionPerformed(leon.view.event.LyActionEvent)
public void keyTyped(java.awt.event.KeyEvent evt)
keyTyped
in interface java.awt.event.KeyListener
KeyListener.keyTyped(java.awt.event.KeyEvent)
public void keyPressed(java.awt.event.KeyEvent evt)
keyPressed
in interface java.awt.event.KeyListener
KeyListener.keyPressed(java.awt.event.KeyEvent)
public void keyReleased(java.awt.event.KeyEvent evt)
keyReleased
in interface java.awt.event.KeyListener
KeyListener.keyReleased(java.awt.event.KeyEvent)
public void setMaxChars(int maxChars)
maxChars
- the maximum width of the textpublic void setNCols(int nCols)
nCols
- the number of text columnspublic void setWidth(int width)
width
- the width of this component. Use -1 for automatic calculation.public java.awt.Dimension getPreferredSize()
getPreferredSize
in class javax.swing.JComponent
Component.getPreferredSize()
public LyJTextField getTextField()
public javax.swing.JPanel getButtons()
public java.lang.String getValue()
getValue
in interface LyGetValueInterface
LyGetValueInterface.getValue()
public final void setValue(java.lang.String str)
setValue
in interface LySetValueInterface
str
- the new value of the Value attributeLySetValueInterface.setValue(java.lang.String)
public void setValue(java.lang.String str, boolean notify)
str
- the new valuenotify
- Indicates that the action transmitter must be notified of this change.getValue()
public void setAutorizeEnabledButtons(boolean enable)
enable
- if false the button will never be enablepublic void setEnabled(boolean enable)
setEnabled
in class javax.swing.JComponent
Component.setEnabled(boolean)
public LyJTextField textFieldFactory()
public void requestFocus()
requestFocus
in class javax.swing.JComponent
JComponent.requestFocus()
public void focusGained(java.awt.event.FocusEvent e)
focusGained
in interface java.awt.event.FocusListener
FocusListener.focusGained(java.awt.event.FocusEvent)
public void focusLost(java.awt.event.FocusEvent e)
focusLost
in interface java.awt.event.FocusListener
FocusListener.focusLost(java.awt.event.FocusEvent)
public void setIdle(boolean status)
setIdle
in interface LySetIdleInterface
status
- new idle status (LySetIdleInterface interface)LySetIdleInterface.setIdle(boolean)
public boolean isIdle()
isIdle
in interface LyIsIdleInterface
LyIsIdleInterface.isIdle()
public boolean isEditable()
setEditable(boolean)
public void setEditable(boolean editable)
setEditable
in interface LySetEditableInterface
LySetEditableInterface.setEditable(boolean)
,
isEditable()
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 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 |