| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JPanel
|
+--com.togethersoft.openapi.util.ui.ExtendedControl
Control which has a rectangular button on the right and a component on the left taking up the rest of the space.
| Inner Class Summary | |
private class | ExtendedControl.ExtendedControlLayoutManager |
| Field Summary | |
final static int | CHOOSER_BUTTONSpecify button type as an abstract chooser. |
final static int | COLOR_CHOOSER_BUTTONSpecify button type as an color chooser. |
final static int | FILE_CHOOSER_BUTTONSpecify button type as an file chooser. |
private static int | ICONS_COUNT |
final static int | MULTILINE_TEXT_CHOOSER_BUTTONSpecify button type as an multiline text chooser. |
protected ActionListener | myActionListener |
protected int | myHorizontalButtonPosition |
private static Icon[] | myIconArray |
private static String[] | myLocationArray |
protected JButton | theButton |
protected Component | theComponent |
| Fields inherited from class javax.swing.JComponent |
ui, listenerList, WHEN_FOCUSED, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_WINDOW, UNDEFINED_CONDITION, TOOL_TIP_TEXT_KEY, accessibleContext |
| Fields inherited from class java.awt.Component |
TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT |
| Constructor Summary | |
| ExtendedControl(int buttonType, Component innerComponent, ActionListener al)Constructs new ExtendedControl. |
| ExtendedControl(int buttonType, Component innerComponent, ActionListener al, boolean isIconEnabled)Constructs new ExtendedControl. |
| ExtendedControl(String buttonText, Icon buttonIcon, Component innerComponent, ActionListener al)Constructs new extended control. |
protected | ExtendedControl()Constructs new empty extended control. |
| Method Summary | |
void | addFocusListener(FocusListener l)Adds specified focus listener for this container. |
void | dispose()Removes action listener and all components from this container. |
protected KeyStroke | getActionKeyStroke() |
protected JButton | getButton(String buttonText, Icon buttonIcon) |
protected static JButton | getButton(int buttonType) |
static JButton | getChooserButton()Returns JButton represents chooser button. |
static Icon | getChooserIcon()Returns chooser button icon. |
static JButton | getColorChooserButton()Returns JButton represents file chooser button. |
static Icon | getColorChooserIcon()Returns file chooser button icon. |
static JButton | getFileChooserButton()Returns JButton represents file chooser button. |
static Icon | getFileChooserIcon()Returns file chooser button icon. |
static Icon | getIcon(int buttonType)Returns chooser button icon by buttonType. |
static JButton | getMultilineTextChooserButton()Returns JButton represents file chooser button. |
static Icon | getMultilineTextChooserIcon()Returns file chooser button icon. |
protected void | init(JButton button, Component innerComponent, ActionListener al) |
void | removeFocusListener(FocusListener l)Removes specified focus listener from this container. |
void | requestFocus()Requests that button in this container get the input focus. |
void | setEnabled(boolean enabled)Enables this control. |
void | setHorizontalButtonPosition(int buttonPosition)Sets the horizontal position of the טדוושע, relative to Component. |
| Methods inherited from class javax.swing.JPanel |
updateUI, getUIClassID, paramString, getAccessibleContext |
| Methods inherited from class javax.swing.JComponent |
setUI, getComponentGraphics, paintComponent, paintChildren, paintBorder, update, paint, printAll, print, printComponent, printChildren, printBorder, isPaintingTile, isFocusCycleRoot, isManagingFocus, setNextFocusableComponent, getNextFocusableComponent, setRequestFocusEnabled, isRequestFocusEnabled, grabFocus, setVerifyInputWhenFocusTarget, getVerifyInputWhenFocusTarget, setPreferredSize, getPreferredSize, setMaximumSize, getMaximumSize, setMinimumSize, getMinimumSize, isMinimumSizeSet, isPreferredSizeSet, isMaximumSizeSet, contains, setBorder, getBorder, getInsets, getInsets, getAlignmentY, setAlignmentY, getAlignmentX, setAlignmentX, setInputVerifier, getInputVerifier, getGraphics, setDebugGraphicsOptions, getDebugGraphicsOptions, registerKeyboardAction, registerKeyboardAction, unregisterKeyboardAction, getRegisteredKeyStrokes, getConditionForKeyStroke, getActionForKeyStroke, resetKeyboardActions, setInputMap, getInputMap, getInputMap, setActionMap, getActionMap, requestDefaultFocus, setVisible, hide, setForeground, setBackground, setFont, isFocusTraversable, processFocusEvent, processComponentKeyEvent, processKeyEvent, processKeyBinding, setToolTipText, getToolTipText, getToolTipText, getToolTipLocation, createToolTip, scrollRectToVisible, setAutoscrolls, getAutoscrolls, processMouseMotionEvent, enable, disable, getClientProperty, putClientProperty, isLightweightComponent, reshape, getBounds, getSize, getLocation, getX, getY, getWidth, getHeight, hasFocus, isOpaque, setOpaque, computeVisibleRect, getVisibleRect, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener, fireVetoableChange, addVetoableChangeListener, removeVetoableChangeListener, getTopLevelAncestor, addAncestorListener, removeAncestorListener, getListeners, addNotify, removeNotify, repaint, repaint, revalidate, isValidateRoot, isOptimizedDrawingEnabled, paintImmediately, paintImmediately, setDoubleBuffered, isDoubleBuffered, getRootPane |
| Methods inherited from class java.awt.Container |
getComponentCount, countComponents, getComponent, getComponents, insets, add, add, add, add, add, addImpl, remove, remove, removeAll, getLayout, setLayout, doLayout, layout, invalidate, validate, validateTree, preferredSize, minimumSize, paintComponents, printComponents, addContainerListener, removeContainerListener, processEvent, processContainerEvent, deliverEvent, getComponentAt, locate, getComponentAt, findComponentAt, findComponentAt, isAncestorOf, list, list |
| Methods inherited from class java.awt.Component |
getName, setName, getParent, getPeer, setDropTarget, getDropTarget, getGraphicsConfiguration, getTreeLock, getToolkit, isValid, isDisplayable, isVisible, isShowing, isEnabled, enable, enableInputMethods, show, show, getForeground, getBackground, getFont, getLocale, setLocale, getColorModel, getLocation, getLocationOnScreen, location, setLocation, move, setLocation, getSize, size, setSize, resize, setSize, resize, getBounds, bounds, setBounds, setBounds, isLightweight, getFontMetrics, setCursor, getCursor, paintAll, repaint, repaint, repaint, imageUpdate, createImage, createImage, prepareImage, prepareImage, checkImage, checkImage, inside, contains, dispatchEvent, postEvent, addComponentListener, removeComponentListener, addHierarchyListener, removeHierarchyListener, addHierarchyBoundsListener, removeHierarchyBoundsListener, addKeyListener, removeKeyListener, addMouseListener, removeMouseListener, addMouseMotionListener, removeMouseMotionListener, addInputMethodListener, removeInputMethodListener, getInputMethodRequests, getInputContext, enableEvents, disableEvents, coalesceEvents, processComponentEvent, processMouseEvent, processInputMethodEvent, processHierarchyEvent, processHierarchyBoundsEvent, handleEvent, mouseDown, mouseDrag, mouseUp, mouseMove, mouseEnter, mouseExit, keyDown, keyUp, action, gotFocus, lostFocus, transferFocus, nextFocus, add, remove, toString, list, list, list, setComponentOrientation, getComponentOrientation |
| Methods inherited from class java.lang.Object |
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize |
| Field Detail |
public final static int CHOOSER_BUTTON
public final static int COLOR_CHOOSER_BUTTON
public final static int FILE_CHOOSER_BUTTON
private static int ICONS_COUNT
public final static int MULTILINE_TEXT_CHOOSER_BUTTON
protected ActionListener myActionListener
protected int myHorizontalButtonPosition
private static Icon[] myIconArray
private static String[] myLocationArray
protected JButton theButton
protected Component theComponent
| Constructor Detail |
public ExtendedControl(int buttonType, Component innerComponent, ActionListener al)
public ExtendedControl(int buttonType, Component innerComponent, ActionListener al, boolean isIconEnabled)
public ExtendedControl(String buttonText, Icon buttonIcon, Component innerComponent, ActionListener al)
protected ExtendedControl()
| Method Detail |
public void addFocusListener(FocusListener l)
public void dispose()
protected KeyStroke getActionKeyStroke()
protected JButton getButton(String buttonText, Icon buttonIcon)
protected static JButton getButton(int buttonType)
public static JButton getChooserButton()
public static Icon getChooserIcon()
public static JButton getColorChooserButton()
public static Icon getColorChooserIcon()
public static JButton getFileChooserButton()
public static Icon getFileChooserIcon()
public static Icon getIcon(int buttonType)
public static JButton getMultilineTextChooserButton()
public static Icon getMultilineTextChooserIcon()
protected void init(JButton button, Component innerComponent, ActionListener al)
public void removeFocusListener(FocusListener l)
public void requestFocus()
public void setEnabled(boolean enabled)
public void setHorizontalButtonPosition(int buttonPosition)
| Association Links |
to Class javax.swing.JButton
to Class java.awt.event.ActionListener
to Class javax.swing.Icon
to Class java.lang.String
| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||