Package org.uberfire.workbench.model
Class NamedPosition
- java.lang.Object
-
- org.uberfire.workbench.model.NamedPosition
-
- All Implemented Interfaces:
Position
@Portable public class NamedPosition extends Object implements Position
Represents the position of a child panel by name. For example, within a templated perspective, panels are positioned by ErraiUI DataField names.Positions that refer to the same field name compare equal to each other.
Instances of this class are immutable.
-
-
Field Summary
Fields Modifier and Type Field Description static NamedPositionROOTRepresents the root panel of any templated perspective.
-
Constructor Summary
Constructors Constructor Description NamedPosition(String fieldName)Creates a new position representing the ErraiUI@DataFieldwith the given name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetName()Returns the data field name this Position refers to.inthashCode()StringtoString()
-
-
-
Field Detail
-
ROOT
public static final NamedPosition ROOT
Represents the root panel of any templated perspective.
-
-
Method Detail
-
getName
public String getName()
Returns the data field name this Position refers to.
-
-