|
||||||||||
| 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
weka.gui.PropertyPanel
public class PropertyPanel
Support for drawing a property value in a component.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
TOOL_TIP_TEXT_KEY, 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(PropertyEditor pe)
Create the panel with the supplied property editor. |
|
PropertyPanel(PropertyEditor pe,
boolean ignoreCustomPanel)
Create the panel with the supplied property editor, optionally ignoring any custom panel the editor can provide. |
|
| Method Summary | |
|---|---|
boolean |
addToHistory()
Adds the current editor value to the history. |
boolean |
addToHistory(Object obj)
Adds the specified value to the history. |
void |
paintComponent(Graphics g)
Paints the component, using the property editor's paint method. |
void |
removeNotify()
Cleans up when the panel is destroyed. |
void |
setEnabled(boolean enabled)
Passes on enabled/disabled status to the custom panel (if one is set). |
void |
showPropertyDialog()
Displays the property edit dialog for the panel. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyPanel(PropertyEditor pe)
pe - the PropertyEditor
public PropertyPanel(PropertyEditor pe,
boolean ignoreCustomPanel)
pe - the PropertyEditorignoreCustomPanel - whether to make use of any available custom panel| Method Detail |
|---|
public void showPropertyDialog()
public void removeNotify()
removeNotify in class JComponentpublic void setEnabled(boolean enabled)
setEnabled in class JComponentenabled - true if this panel (and the custom panel is enabled)public void paintComponent(Graphics g)
paintComponent in class JComponentg - the current graphics contextpublic boolean addToHistory()
public boolean addToHistory(Object obj)
obj - the object to add to the history
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||