org.apache.myfaces.tobago.context
Class Markup

java.lang.Object
  extended by org.apache.myfaces.tobago.context.Markup
All Implemented Interfaces:
Serializable, Iterable<String>

public final class Markup
extends Object
implements Serializable, Iterable<String>

A markup signs a component to be rendered different from the normal. E. g. markup="emphasized" might be rendered bold or a markup="deleted" might be rendered with line-through style. The concrete rendering depends from the theme.

The markup can also hold more than one value, e. g. markup="emphasized, deleted".

The value of the markup is unmodifiable.

A markup must be registered for a component, before it can be used.

A markup should only contain ASCII characters and digits.

See Also:
Serialized Form

Field Summary
static Markup ASCENDING
           
static Markup CENTER
           
static Markup CLICKABLE
           
static Markup DEFAULT
           
static Markup DELETED
           
static Markup DESCENDING
           
static Markup DISABLED
           
static Markup ERROR
           
static Markup EVEN
           
static Markup EXPANDED
           
static Markup FATAL
           
static Markup FILLER
           
static Markup FIRST
           
static Markup FOLDER
           
static Markup INFO
           
static Markup INLINE
           
static Markup LEFT
           
static Markup MARKED
           
static Markup MODAL
           
static Markup NULL
           
static Markup NUMBER
           
static Markup ODD
           
static Markup PURE
           
static Markup READONLY
           
static Markup REQUIRED
           
static Markup RESIZABLE
           
static Markup RIGHT
           
static Markup SECONDS
           
static Markup SELECTED
           
static Markup SHEET_DESELECT_ALL
           
static Markup SHEET_SELECT_ALL
           
static Markup SHEET_TOGGLE_ALL
           
static Markup SORTABLE
           
static Markup STRONG
           
static Markup TOP
           
static Markup WARN
           
 
Method Summary
 Markup add(Markup markup)
          Adds one markup to an other.
 boolean contains(String markup)
           
 boolean equals(Object o)
           
 int hashCode()
           
 Iterator<String> iterator()
           
 Markup remove(Markup markup)
           
 String toString()
           
static Markup valueOf(Object value)
           
static Markup valueOf(String value)
           
static Markup valueOf(String[] values)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL

public static final Markup NULL

ASCENDING

public static final Markup ASCENDING

CENTER

public static final Markup CENTER

CLICKABLE

public static final Markup CLICKABLE

DEFAULT

public static final Markup DEFAULT

DELETED

public static final Markup DELETED

DESCENDING

public static final Markup DESCENDING

DISABLED

public static final Markup DISABLED

ERROR

public static final Markup ERROR

EVEN

public static final Markup EVEN

EXPANDED

public static final Markup EXPANDED

FILLER

public static final Markup FILLER

FATAL

public static final Markup FATAL

FIRST

public static final Markup FIRST

FOLDER

public static final Markup FOLDER

INFO

public static final Markup INFO

INLINE

public static final Markup INLINE

LEFT

public static final Markup LEFT

MARKED

public static final Markup MARKED

MODAL

public static final Markup MODAL

NUMBER

public static final Markup NUMBER

ODD

public static final Markup ODD

PURE

public static final Markup PURE

READONLY

public static final Markup READONLY

REQUIRED

public static final Markup REQUIRED

RESIZABLE

public static final Markup RESIZABLE

RIGHT

public static final Markup RIGHT

SECONDS

public static final Markup SECONDS

SELECTED

public static final Markup SELECTED

SHEET_SELECT_ALL

public static final Markup SHEET_SELECT_ALL

SHEET_DESELECT_ALL

public static final Markup SHEET_DESELECT_ALL

SHEET_TOGGLE_ALL

public static final Markup SHEET_TOGGLE_ALL

SORTABLE

public static final Markup SORTABLE

STRONG

public static final Markup STRONG

TOP

public static final Markup TOP

WARN

public static final Markup WARN
Method Detail

valueOf

public static Markup valueOf(String[] values)

valueOf

public static Markup valueOf(String value)

valueOf

public static Markup valueOf(Object value)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

iterator

public Iterator<String> iterator()
Specified by:
iterator in interface Iterable<String>

add

public Markup add(Markup markup)
Adds one markup to an other. Attention: The markup itself is not modified, you need to use the result of this operation.


remove

public Markup remove(Markup markup)

contains

public boolean contains(String markup)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.