public class PropertiesPanel extends JPanel
JComponent.AccessibleJComponent
Component.BaselineResizeBehavior
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
PropertiesPanel()
Create new properties panel.
|
PropertiesPanel(String title)
Create new properties panel.
|
Modifier and Type | Method and Description |
---|---|
void |
addComponent(String name,
JComponent comp)
Add a component that spans a full line.
|
void |
addComponent(String name,
JComponent comp,
double weighty)
Add a component
|
void |
addComponent(String name,
JComponent comp,
double weighty,
int fill)
Add a component
|
void |
addComponent(String name,
JComponent comp,
double weighty,
int fill,
int anchor)
Add a component
|
void |
addFullLineComponent(String name,
JComponent comp)
Add a component that spans a full line.
|
void |
addFullLineComponent(String name,
JComponent comp,
double weighty)
Add a component that spans a full line.
|
JButton |
createButton(String name,
String text)
Create a button and add it to the panel.
|
JButton |
createButton(String name,
String text,
double weighty)
Create a button and add it to the panel.
|
JButton[] |
createButtons(String groupname,
String[] names,
double weighty)
Create several buttons.
|
JCheckBox |
createCheckBox(String name)
Create a check box and add it to the panel.
|
JCheckBox |
createCheckBox(String name,
boolean selected,
boolean enabled,
double weighty)
Create a check box and add it to the panel.
|
JComboBox |
createComboBox(String name,
Object[] values)
Create a combo box and add it to the panel.
|
JComboBox |
createComboBox(String name,
Object[] values,
boolean editable,
double weighty)
Create a combo box and add it to the panel.
|
JTextField |
createTextField(String name)
Create a text field and add it to the panel.
|
JTextField |
createTextField(String name,
String defvalue)
Create a text field and add it to the panel.
|
JTextField |
createTextField(String name,
String defvalue,
boolean editable)
Create a text field and add it to the panel.
|
JTextField |
createTextField(String name,
String defvalue,
boolean editable,
double weighty)
Create a text field and add it to the panel.
|
JCheckBox |
getCheckBox(String name)
Get a check box.
|
JComboBox |
getComboBox(String name)
Get a combo box.
|
JComponent |
getComponent(String name)
Get a component.
|
JTextField |
getTextField(String name)
Get a text field.
|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
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, getPreferredSize, 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, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
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, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, 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, transferFocusBackward, transferFocusUpCycle
public PropertiesPanel()
public PropertiesPanel(String title)
public JTextField getTextField(String name)
public JComponent getComponent(String name)
public JTextField createTextField(String name)
public JTextField createTextField(String name, String defvalue)
public JTextField createTextField(String name, String defvalue, boolean editable)
public JTextField createTextField(String name, String defvalue, boolean editable, double weighty)
public JCheckBox createCheckBox(String name)
public JCheckBox createCheckBox(String name, boolean selected, boolean enabled, double weighty)
public JComboBox createComboBox(String name, Object[] values)
public JComboBox createComboBox(String name, Object[] values, boolean editable, double weighty)
public JButton createButton(String name, String text)
public JButton createButton(String name, String text, double weighty)
public JButton[] createButtons(String groupname, String[] names, double weighty)
names
- The button names.public void addComponent(String name, JComponent comp)
public void addComponent(String name, JComponent comp, double weighty)
public void addComponent(String name, JComponent comp, double weighty, int fill)
public void addComponent(String name, JComponent comp, double weighty, int fill, int anchor)
public void addFullLineComponent(String name, JComponent comp)
public void addFullLineComponent(String name, JComponent comp, double weighty)
Copyright © 2012. All Rights Reserved.