|
||||||||||
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 | +--org.openide.explorer.propertysheet.PropertyPanel
Visual Java Bean for editing of properties. It takes the model and represents the property editor for it.
Inner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Inner classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent |
Field Summary | |
static int |
PREF_CUSTOM_EDITOR
Constant defining preferences in displaying of value. |
static int |
PREF_INPUT_STATE
Constant defining preferences in displaying of value. |
static int |
PREF_READ_ONLY
Constant defining preferences in displaying of value. |
static String |
PROP_MODEL
Name of the 'model' property. |
static String |
PROP_PREFERENCES
Name of the 'preferences' property. |
static String |
PROP_PROPERTY_EDITOR
Name of the read-only property 'propertyEditor'. |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, 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 | |
PropertyPanel()
Creates new PropertyPanel with the empty DefaultPropertyModel |
|
PropertyPanel(Object bean,
String propertyName,
int preferences)
Creates new PropertyPanel with DefaultPropertyModel |
|
PropertyPanel(PropertyModel model,
int preferences)
Creates new PropertyPanel |
Method Summary | |
AccessibleContext |
getAccessibleContext()
|
PropertyModel |
getModel()
Getter for property model. |
int |
getPreferences()
Getter for property preferences. |
PropertyEditor |
getPropertyEditor()
Getter for current property editor depending on the model. |
boolean |
isChangeImmediate()
Getter for property changeImmediate. |
void |
requestFocus()
|
void |
setChangeImmediate(boolean changeImmediate)
Setter for property changeImmediate. |
void |
setEnabled(boolean enabled)
Sets whether or not this component is enabled. |
void |
setModel(PropertyModel model)
Setter for property model. |
void |
setPreferences(int preferences)
Setter for visual preferences in displaying of the value of the property. |
void |
updateValue()
Updates the value if org.openide.explorer.propertysheet.editors.EnhancedCustomPropertyEditor
is used. |
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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int PREF_READ_ONLY
public static final int PREF_CUSTOM_EDITOR
public static final int PREF_INPUT_STATE
public static final String PROP_PREFERENCES
public static final String PROP_MODEL
public static final String PROP_PROPERTY_EDITOR
Constructor Detail |
public PropertyPanel()
public PropertyPanel(Object bean, String propertyName, int preferences)
bean
- The instance of beanpropertyName
- The name of the property to be displayedpublic PropertyPanel(PropertyModel model, int preferences)
model
- The model for displayingMethod Detail |
public int getPreferences()
public void setPreferences(int preferences)
pref
- PREF_XXXX constantspublic PropertyModel getModel()
public void setModel(PropertyModel model)
model
- New value of property model.public void updateValue()
org.openide.explorer.propertysheet.editors.EnhancedCustomPropertyEditor
is used.public PropertyEditor getPropertyEditor()
null
if there is not possible
to obtain property editor for the current model.null
public void setEnabled(boolean enabled)
setEnabled
in class JComponent
enabled
- flag defining the action.public boolean isChangeImmediate()
public void setChangeImmediate(boolean changeImmediate)
changeImmediate
- New value of property changeImmediate.public void requestFocus()
requestFocus
in class JComponent
public AccessibleContext getAccessibleContext()
getAccessibleContext
in interface Accessible
getAccessibleContext
in class JComponent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |