org.ow2.weblab.portlet.bean
Class LegendField

java.lang.Object
  extended by org.ow2.weblab.portlet.bean.LegendField

public class LegendField
extends java.lang.Object

Bean representing an field in a DocumentLegend. It contains information about the entity that this field represent. display name, type or color.

Author:
emilien

Constructor Summary
LegendField()
          Public constructor without parameters.
LegendField(java.lang.String entityType, java.lang.String matchedValue, java.lang.String displayName, java.lang.String styleColor, java.lang.String styleClassName, boolean show)
          Public constructor
 
Method Summary
 java.lang.String getDisplayName()
           
 java.lang.String getEntityType()
          Getters and setters
 java.lang.String getMatchedValue()
           
 java.lang.String getStyleClassName()
           
 java.lang.String getStyleColor()
           
 boolean isShow()
           
 void setDisplayName(java.lang.String displayName)
           
 void setEntityType(java.lang.String entityType)
           
 void setMatchedValue(java.lang.String matchedValue)
           
 void setShow(boolean show)
           
 void setStyleClassName(java.lang.String styleClassName)
           
 void setStyleColor(java.lang.String styleColor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegendField

public LegendField(java.lang.String entityType,
                   java.lang.String matchedValue,
                   java.lang.String displayName,
                   java.lang.String styleColor,
                   java.lang.String styleClassName,
                   boolean show)
Public constructor

Parameters:
entityType - Entity type (For example "http://weblab.eads.com/property/gate/annotation")
matchedValue - value of the entity. (For example "Person")
displayName - value in the legend. (For example "Persons")
styleColor - Color of the entity in the legend.
styleClassName - style class name used for style elements.
show - show entity or not in document using this legend.

LegendField

public LegendField()
Public constructor without parameters.

Method Detail

getEntityType

public java.lang.String getEntityType()
Getters and setters


setEntityType

public void setEntityType(java.lang.String entityType)

getMatchedValue

public java.lang.String getMatchedValue()

setMatchedValue

public void setMatchedValue(java.lang.String matchedValue)

getDisplayName

public java.lang.String getDisplayName()

setDisplayName

public void setDisplayName(java.lang.String displayName)

getStyleColor

public java.lang.String getStyleColor()

setStyleColor

public void setStyleColor(java.lang.String styleColor)

getStyleClassName

public java.lang.String getStyleClassName()

setStyleClassName

public void setStyleClassName(java.lang.String styleClassName)

isShow

public boolean isShow()

setShow

public void setShow(boolean show)


Copyright © 2004-2011. All Rights Reserved.