simuLCS
Class ClassifierComponent

java.lang.Object
  extended bysimuLCS.ClassifierComponent

public class ClassifierComponent
extends java.lang.Object

A set of bits inside a classifier grouped because they share the same meaning. This class is used to generate the GUI for those sets of bits

Author:
Benoit

Field Summary
protected  int init
           
protected  boolean isEditable
           
protected  boolean isStatic
          Static : can be determined at the creation of the classifier non Static (dynamic) : must be determine during run-time //finally not implemented
protected  boolean isWithText
          is there an editable text field associated ?
protected  java.lang.String[] listOfValues
           
protected  int max
           
protected  int min
           
protected  java.lang.String name
           
protected  int nbBits
           
protected  int type
          type = 0 : Yes / No condition -> Checkbox type = 1 : Value -> Slider // not implemented type = 2 : Combox box (list)
protected  G_ClassifierComponent ui
           
 
Constructor Summary
ClassifierComponent(java.lang.String n, boolean iS)
          Default constructor : for a Yes / No Component (type=0)
ClassifierComponent(java.lang.String n, boolean iS, boolean isTxt, java.lang.String[] list, int nb, boolean isEdit)
          Extended constructor, for list of values
ClassifierComponent(java.lang.String n, boolean iS, int t, int mn, int mx, int i, int nb)
          Extended constructor, for other types
 
Method Summary
 int getInit()
           
 java.lang.String[] getListOfValues()
           
 int getMax()
           
 int getMin()
           
 java.lang.String getName()
           
 int getNbBits()
           
 G_ClassifierComponent getPointerUI()
           
 int getType()
           
 G_ClassifierComponent getUi()
           
 G_Panel getUICondition(javax.swing.AbstractAction a)
          Get the GUI Component associated with this group of bits
 G_ClassifierComponent getUIWithListener(int position, int which, boolean withText)
           
 boolean isEditable()
           
 boolean isStatic()
           
 boolean isWithText()
           
 void setInit(int i)
           
 void setisEditable(boolean b)
           
 void setListOfValues(java.lang.String[] strings)
           
 void setMax(int i)
           
 void setMin(int i)
           
 void setName(java.lang.String string)
           
 void setNbBits(int i)
           
 void setStatic(boolean b)
           
 void setType(int i)
           
 void setUi(G_ClassifierComponent component)
           
 void setWithText(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

isStatic

protected boolean isStatic
Static : can be determined at the creation of the classifier non Static (dynamic) : must be determine during run-time //finally not implemented


type

protected int type
type = 0 : Yes / No condition -> Checkbox type = 1 : Value -> Slider // not implemented type = 2 : Combox box (list)


isWithText

protected boolean isWithText
is there an editable text field associated ?


max

protected int max

min

protected int min

init

protected int init

nbBits

protected int nbBits

listOfValues

protected java.lang.String[] listOfValues

isEditable

protected boolean isEditable

ui

protected G_ClassifierComponent ui
Constructor Detail

ClassifierComponent

public ClassifierComponent(java.lang.String n,
                           boolean iS)
Default constructor : for a Yes / No Component (type=0)


ClassifierComponent

public ClassifierComponent(java.lang.String n,
                           boolean iS,
                           int t,
                           int mn,
                           int mx,
                           int i,
                           int nb)
Extended constructor, for other types


ClassifierComponent

public ClassifierComponent(java.lang.String n,
                           boolean iS,
                           boolean isTxt,
                           java.lang.String[] list,
                           int nb,
                           boolean isEdit)
Extended constructor, for list of values

Method Detail

getUICondition

public G_Panel getUICondition(javax.swing.AbstractAction a)
Get the GUI Component associated with this group of bits

Parameters:
a - the Action to link with the GUI component
Returns:

getUIWithListener

public G_ClassifierComponent getUIWithListener(int position,
                                               int which,
                                               boolean withText)

getPointerUI

public G_ClassifierComponent getPointerUI()

getNbBits

public int getNbBits()

isEditable

public boolean isEditable()

getInit

public int getInit()

isStatic

public boolean isStatic()

isWithText

public boolean isWithText()

getListOfValues

public java.lang.String[] getListOfValues()

getMax

public int getMax()

getMin

public int getMin()

getName

public java.lang.String getName()

getType

public int getType()

getUi

public G_ClassifierComponent getUi()

setisEditable

public void setisEditable(boolean b)

setInit

public void setInit(int i)

setStatic

public void setStatic(boolean b)

setWithText

public void setWithText(boolean b)

setListOfValues

public void setListOfValues(java.lang.String[] strings)

setMax

public void setMax(int i)

setMin

public void setMin(int i)

setName

public void setName(java.lang.String string)

setNbBits

public void setNbBits(int i)

setType

public void setType(int i)

setUi

public void setUi(G_ClassifierComponent component)
Parameters:
component -