| ||||||||||
| 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.ToggleButtonPanel
Represents panel which can contain following controls :
simlpe button, radio button, check box and any other controls.
These controls are layouted by GridBagLayout.
| Field Summary | |
final static int | ADD_TO_BUTTON_GROUPParameter for radio button or check box. |
private ButtonGroup | myButtonGroup |
private GridBagLayout | myGridBag |
final static int | NONEParameter for radio button or check box. |
final static int | RECEIVE_EXTRA_VERTICAL_SPACEParameter for radio button or check box. |
| 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 | |
ToggleButtonPanel()Constructs new panel without controls. | |
ToggleButtonPanel(String title)Constructs new panel without controls and sets title. | |
| Method Summary | |
JToggleButton | addCheckBox(String caption)Adds check box to this panel with specified caption. |
JToggleButton | addCheckBox(String caption, int params)Adds check box to this panel with specified caption and layout parameters. |
void | addComponent(JComponent component, GridBagConstraints gbc)Adds new component with specified GridBagConstraints to this panel. |
void | addComponent(JComponent component)Adds new component with default GridBagConstraints to this panel. |
JToggleButton | addRadioButton(String caption)Adds radio button to this panel with specified caption. |
JToggleButton | addRadioButton(String caption, int params)Adds radio button to this panel with specified caption and layout parameters. |
private JToggleButton | addToggleButton(String caption, boolean radioFlag) |
private JToggleButton | addToggleButton(String caption, boolean radioFlag, int params) |
static void | adjustComponentHeight(JComponent component)Decrease preferred height of specified component to 5. |
protected javax.swing.border.AbstractBorder | createTitledBorder(String title) |
ButtonGroup | getButtonGroup()Returns ButtonGroup in this panel. |
| 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, requestFocus, 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, setEnabled, 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, addFocusListener, removeFocusListener, 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 ADD_TO_BUTTON_GROUP
private ButtonGroup myButtonGroup
private GridBagLayout myGridBag
public final static int NONE
public final static int RECEIVE_EXTRA_VERTICAL_SPACE
| Constructor Detail |
public ToggleButtonPanel()
public ToggleButtonPanel(String title)
| Method Detail |
public JToggleButton addCheckBox(String caption)
public JToggleButton addCheckBox(String caption, int params)
public void addComponent(JComponent component, GridBagConstraints gbc)
GridBagConstraints to this panel.public void addComponent(JComponent component)
GridBagConstraints to this panel.
The default constraints are:
fill = HORIZONTAL;
gridwidth = 0;
wightx = 1;
anchor = NORTHWEST;
public JToggleButton addRadioButton(String caption)
public JToggleButton addRadioButton(String caption, int params)
private JToggleButton addToggleButton(String caption, boolean radioFlag)
private JToggleButton addToggleButton(String caption, boolean radioFlag, int params)
public static void adjustComponentHeight(JComponent component)
protected javax.swing.border.AbstractBorder createTitledBorder(String title)
public ButtonGroup getButtonGroup()
| Association Links |
to Class javax.swing.ButtonGroup
| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||