|
org.openide.src 1.8.22 | |||||||||
| 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.editors.ModifierEditor
public class ModifierEditor
Property editors for java modifiers.
| 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.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| 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 org.openide.explorer.propertysheet.ExPropertyEditor |
|---|
PROP_VALUE_VALID, PROPERTY_HELP_ID |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ModifierEditor()
Creates new modifiers editor with full mask. |
|
ModifierEditor(int mask)
Creates new modifiers editor. |
|
| Method Summary | |
|---|---|
void |
addNotify()
|
void |
attachEnv(PropertyEnv env)
This method is called by the IDE to pass the environment to the property editor. |
String |
getAsText()
|
Component |
getCustomEditor()
|
String |
getJavaInitializationString()
|
Object |
getPropertyValue()
Get the customized property value. |
String[] |
getTags()
|
Object |
getValue()
Get the value |
boolean |
isPaintable()
|
void |
paintValue(Graphics g,
Rectangle rectangle)
Does nothing. |
void |
removeNotify()
|
void |
setAsText(String string)
Parse the text and sets the modifier editor value |
void |
setMask(int mask)
Set the mask of editable modifiers. |
void |
setValue(Object object)
Set new value |
boolean |
supportsCustomEditor()
|
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.beans.PropertyEditor |
|---|
addPropertyChangeListener, removePropertyChangeListener |
| Constructor Detail |
|---|
public ModifierEditor()
public ModifierEditor(int mask)
mask - The mask of modifier values which should be possible to change.| Method Detail |
|---|
public void addNotify()
addNotify in class JComponentpublic void removeNotify()
removeNotify in class JComponentpublic void setMask(int mask)
mask - new value of the mask.public void setValue(Object object) throws IllegalArgumentException
setValue in interface PropertyEditorIllegalArgumentExceptionpublic String getJavaInitializationString()
getJavaInitializationString in interface PropertyEditorpublic Object getValue()
getValue in interface PropertyEditorpublic boolean isPaintable()
isPaintable in interface PropertyEditorfalsepublic void paintValue(Graphics g, Rectangle rectangle)
paintValue in interface PropertyEditorpublic String getAsText()
getAsText in interface PropertyEditorpublic void setAsText(String string) throws IllegalArgumentException
setAsText in interface PropertyEditorIllegalArgumentExceptionpublic String[] getTags()
getTags in interface PropertyEditornullpublic Component getCustomEditor()
getCustomEditor in interface PropertyEditorthispublic boolean supportsCustomEditor()
supportsCustomEditor in interface PropertyEditortruepublic Object getPropertyValue() throws IllegalStateException
InvalidStateException - when the custom property editor does not contain a valid property value
(and thus it should not be set)
IllegalStateExceptionpublic void attachEnv(PropertyEnv env)
attachEnv in interface ExPropertyEditor
|
org.openide.src 1.8.22 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||