public class IlvGraphLayoutEditor
extends ilog.views.util.beans.editor.IlvTaggedValueEditor
implements ilog.views.util.beans.editor.IlvInternationalizedPropertyEditor
IlvGraphLayoutRenderer
.Constructor and Description |
---|
IlvGraphLayoutEditor()
Creates a new
IlvGraphLayoutEditor . |
IlvGraphLayoutEditor(Locale locale,
boolean ignoreCase)
Creates a new
IlvGraphLayoutEditor . |
Modifier and Type | Method and Description |
---|---|
protected String[] |
createLocalizedTextValues()
Returns a new array of localized strings representing the values of the
property, or
null if no localized strings are available. |
protected String[] |
createStringValues()
Returns a new array of Strings representing Java expressions that
evaluate to the values of the property.
|
protected String[] |
createTags()
Returns a new array of Strings representing the values of the property.
|
protected Object[] |
createValues()
Returns a new array of Objects representing the values of the property.
|
String |
getAsLocalizedText()
Returns the property value as a localized, human editable string.
|
String |
getAsText()
Returns the value of the editor as text.
|
String |
getJavaInitializationString()
Returns the Java initialization string.
|
boolean |
isPaintable()
Returns
false . |
void |
setAsLocalizedText(String string)
Sets the property value by parsing a given string.
|
void |
setAsText(String text)
Sets the value of the editor as text.
|
getAsCSSValue, getLocale, getTags, getValuesAsLocalizedText, init
addPropertyChangeListener, firePropertyChange, getCustomEditor, getSource, getValue, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getValuesAsLocalizedText
addPropertyChangeListener, getCustomEditor, getTags, getValue, paintValue, removePropertyChangeListener, setValue, supportsCustomEditor
public IlvGraphLayoutEditor()
IlvGraphLayoutEditor
.public IlvGraphLayoutEditor(Locale locale, boolean ignoreCase)
IlvGraphLayoutEditor
.locale
- The locale this editor is made for.ignoreCase
- If set to true
, case is ignored to look up
the constant value corresponding to a specified localized tag.protected String[] createTags()
ilog.views.util.beans.editor.IlvTaggedValueEditor
If the method IlvTaggedValueEditor.getAsCSSValue()
is not overridden,
this method is used for representing the values in a CSS style sheet.
Therefore, this method should not return localized strings.
This method is also used for representing the values in a property sheet. Therefore, this method should not return strings starting with a full Java class name.
Backward compatibility constraint: If the set of tags of a class changes,
you need to make sure that the getAsText
method still accepts
the older values. This is needed for reading old CSS files.
createTags
in class ilog.views.util.beans.editor.IlvTaggedValueEditor
protected String[] createStringValues()
ilog.views.util.beans.editor.IlvTaggedValueEditor
This method in used in the implementation of
IlvTaggedValueEditor.getJavaInitializationString()
.
createStringValues
in class ilog.views.util.beans.editor.IlvTaggedValueEditor
protected Object[] createValues()
ilog.views.util.beans.editor.IlvTaggedValueEditor
createValues
in class ilog.views.util.beans.editor.IlvTaggedValueEditor
protected String[] createLocalizedTextValues()
ilog.views.util.beans.editor.IlvTaggedValueEditor
null
if no localized strings are available.createLocalizedTextValues
in class ilog.views.util.beans.editor.IlvTaggedValueEditor
public boolean isPaintable()
false
.isPaintable
in interface PropertyEditor
isPaintable
in class PropertyEditorSupport
public String getJavaInitializationString()
getJavaInitializationString
in interface PropertyEditor
getJavaInitializationString
in class ilog.views.util.beans.editor.IlvTaggedValueEditor
public String getAsText()
getAsText
in interface PropertyEditor
getAsText
in class ilog.views.util.beans.editor.IlvTaggedValueEditor
public void setAsText(String text)
setAsText
in interface PropertyEditor
setAsText
in class ilog.views.util.beans.editor.IlvTaggedValueEditor
text
- The value of the editor as a String.public String getAsLocalizedText()
null
if the value cannot be expressed as a string.
If a non-null value is returned, it can be fed back to
setAsLocalizedText
.getAsLocalizedText
in interface ilog.views.util.beans.editor.IlvInternationalizedPropertyEditor
getAsLocalizedText
in class ilog.views.util.beans.editor.IlvTaggedValueEditor
public void setAsLocalizedText(String string) throws IllegalArgumentException
setAsLocalizedText
in interface ilog.views.util.beans.editor.IlvInternationalizedPropertyEditor
setAsLocalizedText
in class ilog.views.util.beans.editor.IlvTaggedValueEditor
IllegalArgumentException
- if the string is invalid or the property
cannot be expressed as a string at all© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.