| 
||||||||||
| 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
                          |
                          +--org.openide.explorer.propertysheet.PropertySheet
Implements a "property sheet" for a set of selected beans.
| Property | Property Type | Description | 
|---|---|---|
 paintingStyle  |  int      |  style of painting properties (ALWAYS_AS_STRING, STRING_PREFERRED, PAINTING_PREFERRED)
  | 
 currentPage    |  int      | currently showed page (e.g. properties, expert, events) | 
 expert         |  boolean  | expert mode as in the JavaBeans specifications | 
| Inner classes inherited from class javax.swing.JPanel | 
JPanel.AccessibleJPanel | 
| 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 | 
ALWAYS_AS_STRING
Constant for showing properties as a string always.  | 
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
Constant for preferably painting property values.  | 
static String | 
PROPERTY_CURRENT_PAGE
Property with the current page index.  | 
static String | 
PROPERTY_DISABLED_PROPERTY_COLOR
Property giving current disabled property color.  | 
static String | 
PROPERTY_DISPLAY_WRITABLE_ONLY
Property for whether only writable properties should be displayed.  | 
static String | 
PROPERTY_PLASTIC
Property for "plastic" mode.  | 
static String | 
PROPERTY_PROPERTY_PAINTING_STYLE
Property for the painting style.  | 
static String | 
PROPERTY_SORTING_MODE
Property giving current sorting mode.  | 
static String | 
PROPERTY_VALUE_COLOR
Property giving current value color.  | 
static int | 
SORTED_BY_NAMES
Constant for by-name sorting mode.  | 
static int | 
SORTED_BY_TYPES
Constant for by-type sorting mode.  | 
static int | 
STRING_PREFERRED
Constant for preferably showing properties as string.  | 
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()
 | 
|
| Method Summary | |
 int | 
getCurrentPage()
Get the currently selected page.  | 
 Color | 
getDisabledPropertyColor()
Get the foreground color of disabled properties.  | 
 boolean | 
getDisplayWritableOnly()
Test whether only writable properties are currently displayed.  | 
 boolean | 
getPlastic()
Test whether buttons in sheet are plastic.  | 
 int | 
getPropertyPaintingStyle()
Get property paint mode.  | 
 int | 
getSortingMode()
Get the sorting mode.  | 
 Color | 
getValueColor()
Get the foreground color of values.  | 
 void | 
setCurrentPage(int index)
Set the currently selected page.  | 
 boolean | 
setCurrentPage(String str)
Set the currently selected page.  | 
 void | 
setDisabledPropertyColor(Color color)
Set the foreground color of disabled properties.  | 
 void | 
setDisplayWritableOnly(boolean b)
Set whether only writable properties are displayed.  | 
 void | 
setNodes(Node[] node)
Set the nodes explored by this property sheet.  | 
 void | 
setPlastic(boolean plastic)
Set whether buttons in sheet should be plastic.  | 
 void | 
setPropertyPaintingStyle(int style)
Set property paint mode.  | 
 void | 
setSortingMode(int sortingMode)
Set the sorting mode.  | 
 void | 
setValueColor(Color color)
Set the foreground color of values.  | 
| Methods inherited from class javax.swing.JPanel | 
getAccessibleContext, getUIClassID, paramString, 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.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
public static final String PROPERTY_SORTING_MODE
public static final String PROPERTY_VALUE_COLOR
public static final String PROPERTY_DISABLED_PROPERTY_COLOR
public static final String PROPERTY_CURRENT_PAGE
public static final String PROPERTY_PLASTIC
public static final String PROPERTY_PROPERTY_PAINTING_STYLE
public static final String PROPERTY_DISPLAY_WRITABLE_ONLY
public static final int ALWAYS_AS_STRING
public static final int STRING_PREFERRED
public static final int PAINTING_PREFERRED
public static final int UNSORTED
public static final int SORTED_BY_NAMES
public static final int SORTED_BY_TYPES
protected static Icon iNoSort
protected static Icon iAlphaSort
protected static Icon iTypeSort
protected static Icon iDisplayWritableOnly
protected static Icon iCustomize
| Constructor Detail | 
public PropertySheet()
| Method Detail | 
public void setNodes(Node[] node)
node - nodes to be exploredpublic void setPropertyPaintingStyle(int style)
style - one of ALWAYS_AS_STRING, STRING_PREFERRED, or PAINTING_PREFERREDpublic int getPropertyPaintingStyle()
setPropertyPaintingStyle(int)
public void setSortingMode(int sortingMode)
                    throws PropertyVetoException
sortingMode - one of UNSORTED, SORTED_BY_NAMES, SORTED_BY_TYPESpublic int getSortingMode()
setSortingMode(int)public void setCurrentPage(int index)
index - index of the page to selectpublic boolean setCurrentPage(String str)
str - name of the tab to selectpublic int getCurrentPage()
public void setPlastic(boolean plastic)
plastic - true if sopublic boolean getPlastic()
true if sopublic void setValueColor(Color color)
color - the new colorpublic Color getValueColor()
public void setDisabledPropertyColor(Color color)
color - the new colorpublic Color getDisabledPropertyColor()
public void setDisplayWritableOnly(boolean b)
b - true if this is desiredpublic boolean getDisplayWritableOnly()
true if so
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||