|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | 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.editors.ModifierEditor
Property editors for java modifiers.
Nested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes 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()
public void removeNotify()
public void setMask(int mask)
mask
- new value of the mask.public void setValue(Object object) throws IllegalArgumentException
setValue
in interface PropertyEditor
IllegalArgumentException
public String getJavaInitializationString()
getJavaInitializationString
in interface PropertyEditor
public Object getValue()
getValue
in interface PropertyEditor
public boolean isPaintable()
isPaintable
in interface PropertyEditor
false
public void paintValue(Graphics g, Rectangle rectangle)
paintValue
in interface PropertyEditor
public String getAsText()
getAsText
in interface PropertyEditor
public void setAsText(String string) throws IllegalArgumentException
setAsText
in interface PropertyEditor
IllegalArgumentException
public String[] getTags()
getTags
in interface PropertyEditor
null
public Component getCustomEditor()
getCustomEditor
in interface PropertyEditor
this
public boolean supportsCustomEditor()
supportsCustomEditor
in interface PropertyEditor
true
public Object getPropertyValue() throws IllegalStateException
InvalidStateException
- when the custom property editor does not contain a valid property value
(and thus it should not be set)
IllegalStateException
public void attachEnv(PropertyEnv env)
attachEnv
in interface ExPropertyEditor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |