public class NodeRendererSettings extends java.lang.Object implements PersistentStateComponent<Element>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RENDERER_TAG |
Constructor and Description |
---|
NodeRendererSettings() |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public static final java.lang.String RENDERER_TAG
public static NodeRendererSettings getInstance()
public void setAlternateCollectionViewsEnabled(boolean enabled)
public boolean areAlternateCollectionViewsEnabled()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public void addListener(NodeRendererSettingsListener listener, Disposable disposable)
public Element getState()
getState
in interface PersistentStateComponent<Element>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public void loadState(Element root)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<Element>
root
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public RendererConfiguration getCustomRenderers()
public PrimitiveRenderer getPrimitiveRenderer()
public ArrayRenderer getArrayRenderer()
public ClassRenderer getClassRenderer()
public HexRenderer getHexRenderer()
public ToStringRenderer getToStringRenderer()
public NodeRenderer[] getAlternateCollectionRenderers()
public void fireRenderersChanged()
public java.util.List<NodeRenderer> getAllRenderers(Project project)
public Renderer readRenderer(Element root) throws InvalidDataException
InvalidDataException
public Element writeRenderer(Renderer renderer) throws WriteExternalException
WriteExternalException
public Renderer createRenderer(java.lang.String rendererId)
public CompoundTypeRenderer createCompoundTypeRenderer(java.lang.String rendererName, java.lang.String className, ValueLabelRenderer labelRenderer, ChildrenRenderer childrenRenderer)
public CompoundReferenceRenderer createCompoundReferenceRenderer(java.lang.String rendererName, java.lang.String className, ValueLabelRenderer labelRenderer, ChildrenRenderer childrenRenderer)
public static ExpressionChildrenRenderer createExpressionChildrenRenderer(java.lang.String expressionText, java.lang.String childrenExpandableText)
public static EnumerationChildrenRenderer createEnumerationChildrenRenderer(java.lang.String[][] expressions)