Search this API

y.option
Interface AttributeOwner

All Known Implementing Classes:
BoolOptionItem, ColorOptionItem, CommentOptionItem, ComponentOptionItem, DoubleOptionItem, EnumOptionItem, FileOptionItem, ImageOptionItem, IntOptionItem, ObjectOptionItem, OptionGroup, OptionHandler, OptionItem, OptionSection, PasswordOptionItem, StringBasedOptionItem, StringOptionItem

public interface AttributeOwner

Specifies the general contract for storing attributes.

 

Method Summary
 java.lang.Object getAttribute(java.lang.String name)
          Returns the value of the attribute with the specified name.
 void removeAttribute(java.lang.String name)
          Removes the attribute with the specified name.
 void setAttribute(java.lang.String name, java.lang.Object value)
          Sets an arbitrary attribute with the specified name and value.
 

Method Detail

getAttribute

java.lang.Object getAttribute(java.lang.String name)
Returns the value of the attribute with the specified name.

Parameters:
name - the name of the attribute being queried
Returns:
the value of the attribute with the specified name

removeAttribute

void removeAttribute(java.lang.String name)
Removes the attribute with the specified name.

Parameters:
name - the name of the attribute being removed

setAttribute

void setAttribute(java.lang.String name,
                  java.lang.Object value)
Sets an arbitrary attribute with the specified name and value.

If value is null, this method will remove the attribute.

Parameters:
name - the name of the attribute being added
value - the value of the attribute being added

© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.