|
org.openide.explorer 6.16.1 1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.openide.explorer.propertysheet.PropertySheet
public class PropertySheet
Implements a property sheet for a set of nodes. Can be used as a
standalone component (e.g. without a connection to ExplorerManager
).
For example to display properties of a JavaBean one could use:
Object bean = ...;
JPanel container = ...;
PropertySheet ps = new PropertySheet();
ps.setNodes(new Node[] { new BeanNode
(bean) });
container.add(ps);
Note that this class should be final, but for backward compatibility,
cannot be. Subclassing this class is strongly discouraged
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
static int |
ALWAYS_AS_STRING
Deprecated. Relic of the original property sheet implementation, useless. |
protected static Icon |
iAlphaSort
Deprecated. Presumably noone uses this variable. If you want to customize the property sheet look you can change the image files directly (or use your own). |
protected static Icon |
iCustomize
Deprecated. Presumably noone uses this variable. If you want to customize the property sheet look you can change the image files directly (or use your own). |
protected static Icon |
iDisplayWritableOnly
Deprecated. Presumably noone uses this variable. If you want to customize the property sheet look you can change the image files directly (or use your own). |
protected static Icon |
iNoSort
Deprecated. Presumably noone uses this variable. If you want to customize the property sheet look you can change the image files directly (or use your own). |
protected static Icon |
iTypeSort
Deprecated. Presumably noone uses this variable. If you want to customize the property sheet look you can change the image files directly (or use your own). |
static int |
PAINTING_PREFERRED
Deprecated. Relic of the original property sheet implementation, does useless. |
static String |
PROPERTY_CURRENT_PAGE
Deprecated. Relic of the original property sheet implementation, , will never be fired. |
static String |
PROPERTY_DISABLED_PROPERTY_COLOR
Deprecated. Relic of the original property sheet implementation, , will never be fired. |
static String |
PROPERTY_DISPLAY_WRITABLE_ONLY
Deprecated. Relic of the original property sheet implementation, will never be fired. |
static String |
PROPERTY_PLASTIC
Deprecated. Relic of the original property sheet implementation, , will never be fired. |
static String |
PROPERTY_PROPERTY_PAINTING_STYLE
Deprecated. Relic of the original property sheet implementation, will never be fired. |
static String |
PROPERTY_SORTING_MODE
Deprecated. Relic of the original property sheet implementation, will never be fired. |
static String |
PROPERTY_VALUE_COLOR
Deprecated. Relic of the original property sheet implementation, will never be fired. |
static int |
SORTED_BY_NAMES
Constant for by-name sorting mode. |
static int |
SORTED_BY_TYPES
Deprecated. Not supported since NetBeans 3.6 |
static int |
STRING_PREFERRED
Deprecated. Relic of the original property sheet implementation, does useless. |
static int |
UNSORTED
Constant for unsorted sorting mode. |
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 | |
---|---|
PropertySheet()
Create a new property sheet |
Method Summary | |
---|---|
void |
addNotify()
|
void |
firePropertyChange(String propertyName,
boolean oldValue,
boolean newValue)
|
int |
getCurrentPage()
Deprecated. Relic of the original property sheet implementation. Does nothing. |
Color |
getDisabledPropertyColor()
Deprecated. Relic of the original property sheet implementation. Display of properties is handled by the look and feel. |
boolean |
getDisplayWritableOnly()
Deprecated. Relic of the original property sheet implementation. Does nothing. |
boolean |
getPlastic()
Deprecated. Relic of the original property sheet implementation. Does nothing. |
int |
getPropertyPaintingStyle()
Deprecated. Relic of the original property sheet implementation. Does nothing. |
int |
getSortingMode()
Get the sorting mode. |
Color |
getValueColor()
Deprecated. Relic of the original property sheet implementation. Display of properties is handled by the look and feel. |
void |
removeNotify()
|
void |
requestFocus()
Overridden to route focus requests to the table |
boolean |
requestFocusInWindow()
Overridden to route focus requests to the table |
void |
setCurrentPage(int index)
Deprecated. Relic of the original property sheet implementation. Does nothing. |
boolean |
setCurrentPage(String str)
Deprecated. Relic of the original property sheet implementation. Does nothing. |
void |
setDescriptionAreaVisible(boolean val)
Set the visibility of the description area. |
void |
setDisabledPropertyColor(Color color)
Deprecated. Relic of the original property sheet implementation. Does nothing. |
void |
setDisplayWritableOnly(boolean b)
Deprecated. Relic of the original property sheet implementation. Does nothing. |
void |
setNodes(Node[] nodes)
Set the nodes explored by this property sheet. |
void |
setPlastic(boolean plastic)
Deprecated. Relic of the original property sheet implementation. Display of properties is handled by the look and feel. |
void |
setPopupEnabled(boolean val)
Set whether or not the popup menu should be available on right-click. |
void |
setPropertyPaintingStyle(int style)
Deprecated. Relic of the original property sheet implementation. Does nothing. |
void |
setSortingMode(int sortingMode)
Set the sorting mode. |
void |
setValueColor(Color color)
Deprecated. Relic of the original property sheet implementation. Display of properties is handled by the look and feel. |
void |
updateUI()
|
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
@Deprecated public static final String PROPERTY_SORTING_MODE
@Deprecated public static final String PROPERTY_VALUE_COLOR
@Deprecated public static final String PROPERTY_DISABLED_PROPERTY_COLOR
@Deprecated public static final String PROPERTY_CURRENT_PAGE
@Deprecated public static final String PROPERTY_PLASTIC
@Deprecated public static final String PROPERTY_PROPERTY_PAINTING_STYLE
@Deprecated public static final String PROPERTY_DISPLAY_WRITABLE_ONLY
@Deprecated public static final int ALWAYS_AS_STRING
@Deprecated public static final int STRING_PREFERRED
@Deprecated public static final int PAINTING_PREFERRED
public static final int UNSORTED
public static final int SORTED_BY_NAMES
@Deprecated public static final int SORTED_BY_TYPES
@Deprecated protected static Icon iNoSort
@Deprecated protected static Icon iAlphaSort
@Deprecated protected static Icon iTypeSort
@Deprecated protected static Icon iDisplayWritableOnly
@Deprecated protected static Icon iCustomize
Constructor Detail |
---|
public PropertySheet()
Method Detail |
---|
public void addNotify()
addNotify
in class JComponent
public void updateUI()
updateUI
in class JPanel
public void removeNotify()
removeNotify
in class JComponent
public final void setPopupEnabled(boolean val)
val
- If true, right-clicking the property sheet will show a popup
offering sorting options, show/hide description area, etc.public final void setDescriptionAreaVisible(boolean val)
val
- Whether or not it should be visiblepublic void requestFocus()
requestFocus
in class JComponent
public boolean requestFocusInWindow()
requestFocusInWindow
in class JComponent
public void setNodes(Node[] nodes)
nodes
- nodes to be explored or null to clear the sheet@Deprecated public void setPropertyPaintingStyle(int style)
style
- Irrelevant@Deprecated public int getPropertyPaintingStyle()
setPropertyPaintingStyle(int)
public void setSortingMode(int sortingMode) throws PropertyVetoException
sortingMode
- one of UNSORTED
or SORTED_BY_NAMES
. SORTED_BY_TYPES
is
no longer supported.
PropertyVetoException
- if a value other than one of the defined sorting modes is setpublic int getSortingMode()
setSortingMode(int)
@Deprecated public void setCurrentPage(int index)
index
- index of the page to select@Deprecated public boolean setCurrentPage(String str)
str
- name of the tab to select
@Deprecated public int getCurrentPage()
@Deprecated public void setPlastic(boolean plastic)
plastic
- true if so@Deprecated public boolean getPlastic()
true
if so@Deprecated public void setValueColor(Color color)
color
- the new color@Deprecated public Color getValueColor()
@Deprecated public void setDisabledPropertyColor(Color color)
color
- the new color@Deprecated public Color getDisabledPropertyColor()
@Deprecated public void setDisplayWritableOnly(boolean b)
b
- true
if this is desired@Deprecated public boolean getDisplayWritableOnly()
true
if sopublic void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)
firePropertyChange
in class JComponent
|
org.openide.explorer 6.16.1 1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |