GraphLab Project

graphlab.ui
Class AttributeSetView

java.lang.Object
  extended by graphlab.ui.AttributeSetView

public class AttributeSetView
extends java.lang.Object

the eXtended attribute which is a kind of view for notifiableAttributeSet, it then connects to the notifiableAttributeSet which is a kind of model for it.

Author:
Azin Azadi

Constructor Summary
AttributeSetView()
           
 
Method Summary
 AttributeSet getAttribute()
           
 java.lang.String getCategory(java.lang.String name)
           
 java.lang.String getDescription(java.lang.String name)
           
 java.lang.String getDisplayName(java.lang.String name)
           
 GBasicCellEditor getEditor(java.lang.String name)
           
 int getIndex(java.lang.String name)
          returns the index of the given name, if the index didn't set before, it returns Integer.MAX_VALUE
 java.lang.String getNameAt(int i)
           
 java.lang.String[] getNames()
          gets all visible names sorted by indices and then alphabetically!
 GBasicCellRenderer getrenderer(java.lang.String name)
           
 boolean isEditable(java.lang.String name)
           
 boolean isvalid(java.lang.String name)
          returns true if the name didn't setted to be invalid.
 boolean isVisible(java.lang.String name)
          returns true if the name didn't setted to be invisible.
 void setAttribute(AttributeSet a)
          connects this to a
 void setCategory(java.lang.String name, java.lang.String category)
           
 void setDescription(java.lang.String name, java.lang.String description)
           
 void setDisplayName(java.lang.String name, java.lang.String displayName)
          display names not implemented yet.
 void setEditable(java.lang.String name, boolean isEditable)
           
 void setEditor(java.lang.String name, GBasicCellEditor editor)
           
 void setIndex(java.lang.String name, int atrIndex)
          set the index of the attribute, the lower index attributes are put before, in the getNames()
 void setrenderer(java.lang.String name, GBasicCellRenderer renderer)
           
 void setValid(java.lang.String name, java.lang.Boolean isvalid)
           
 void setVisible(java.lang.String name, java.lang.Boolean isVisible)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeSetView

public AttributeSetView()
Method Detail

isEditable

public boolean isEditable(java.lang.String name)

setEditable

public void setEditable(java.lang.String name,
                        boolean isEditable)

setDisplayName

public void setDisplayName(java.lang.String name,
                           java.lang.String displayName)
display names not implemented yet.


getDisplayName

public java.lang.String getDisplayName(java.lang.String name)

setDescription

public void setDescription(java.lang.String name,
                           java.lang.String description)

getDescription

public java.lang.String getDescription(java.lang.String name)

setCategory

public void setCategory(java.lang.String name,
                        java.lang.String category)

getCategory

public java.lang.String getCategory(java.lang.String name)

setEditor

public void setEditor(java.lang.String name,
                      GBasicCellEditor editor)

getEditor

public GBasicCellEditor getEditor(java.lang.String name)

setrenderer

public void setrenderer(java.lang.String name,
                        GBasicCellRenderer renderer)

getrenderer

public GBasicCellRenderer getrenderer(java.lang.String name)

setVisible

public void setVisible(java.lang.String name,
                       java.lang.Boolean isVisible)

isVisible

public boolean isVisible(java.lang.String name)
returns true if the name didn't setted to be invisible. visibility option is most usable in property editor


setValid

public void setValid(java.lang.String name,
                     java.lang.Boolean isvalid)

isvalid

public boolean isvalid(java.lang.String name)
returns true if the name didn't setted to be invalid. valid option is most usable in property editor e.g. it is used when the property editor reffers to more than one item that all of them have the name property but with DIFFERENT values, at this time the name value should be invalid


setIndex

public void setIndex(java.lang.String name,
                     int atrIndex)
set the index of the attribute, the lower index attributes are put before, in the getNames()


getIndex

public int getIndex(java.lang.String name)
returns the index of the given name, if the index didn't set before, it returns Integer.MAX_VALUE


getNameAt

public java.lang.String getNameAt(int i)

getNames

public java.lang.String[] getNames()
gets all visible names sorted by indices and then alphabetically!


setAttribute

public void setAttribute(AttributeSet a)
connects this to a

Parameters:
a -

getAttribute

public AttributeSet getAttribute()

GraphLab Project