org.openide.explorer.propertysheet
Class PropertyPanel
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--org.openide.explorer.propertysheet.PropertyPanel
- All Implemented Interfaces:
- ImageObserver, MenuContainer, Serializable
- public class PropertyPanel
- extends JComponent
Visual Java Bean for editing of properties. It takes the model
and represents the property editor for it.
- See Also:
- Serialized Form
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getUIClassID, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus |
PREF_READ_ONLY
public static final int PREF_READ_ONLY
- Constant defining preferences in displaying of value.
Value should be displayed in read-only mode.
PREF_CUSTOM_EDITOR
public static final int PREF_CUSTOM_EDITOR
- Constant defining preferences in displaying of value.
Value should be displayed in custom editor.
PREF_INPUT_STATE
public static final int PREF_INPUT_STATE
- Constant defining preferences in displaying of value.
Value should be displayed in editor only.
PROP_PREFERENCES
public static final String PROP_PREFERENCES
- Name of the 'preferences' property
PROP_MODEL
public static final String PROP_MODEL
- Name of the 'model' property
PROP_PROPERTY_EDITOR
public static final String PROP_PROPERTY_EDITOR
- Name of the read-only property 'propertyEditor'
PropertyPanel
public PropertyPanel()
- Creates new PropertyPanel with the empty DefaultPropertyModel
PropertyPanel
public PropertyPanel(Object bean,
String propertyName,
int preferences)
- Creates new PropertyPanel with DefaultPropertyModel
- Parameters:
bean
- The instance of beanpropertyName
- The name of the property to be displayed
PropertyPanel
public PropertyPanel(PropertyModel model,
int preferences)
- Creates new PropertyPanel
- Parameters:
model
- The model for displaying
getPreferences
public int getPreferences()
- Getter for property preferences.
- Returns:
- Value of property preferences.
setPreferences
public void setPreferences(int preferences)
getModel
public PropertyModel getModel()
- Getter for property model.
- Returns:
- Value of property model.
setModel
public void setModel(PropertyModel model)
- Setter for property model.
- Parameters:
model
- New value of property model.
updateValue
public void updateValue()
- Updates the value if
org.openide.explorer.propertysheet.editors.EnhancedCustomPropertyEditor
is used.
getPropertyEditor
public PropertyEditor getPropertyEditor()
- Getter for current property editor depending on the model.
It could be
null
if there is not possible
to obtain property editor for the current model.
- Returns:
- the property editor or
null
Built on February 22 2001. | Portions Copyright 1997-2000 Sun Microsystems, Inc. All rights reserved.