|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.melati.poem.DisplayLevel
public final class DisplayLevel
An attribute of a Column
which indicates what level of
reporting of a Table
it should be included in.
Nested Class Summary | |
---|---|
static class |
DisplayLevel.NameUnrecognisedException
Thrown when a DisplayLevel which doesn't exist is referenced,
by misspelling for example. |
Field Summary | |
---|---|
static DisplayLevel |
detail
Display level of Column s included in a detailed display
of a single record. |
Integer |
index
The numeric Id of the Level. |
static DisplayLevel |
never
Display level of Column s hidden from users. |
static DisplayLevel |
primary
Display level of a Column used as the name of the
whole record. |
static DisplayLevel |
record
Display level of Column s included in display focusing on a
single record, but without detail. |
static DisplayLevel |
summary
Display level of Column s to be included in a summary of
records in a set. |
Method Summary | |
---|---|
static int |
count()
|
static DisplayLevel |
forIndex(int index)
Get by numeric id. |
Integer |
getIndex()
|
String |
getName()
|
static DisplayLevel |
named(String name)
Get by name. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final Integer index
public static final DisplayLevel primary
Column
used as the name of the
whole record.
Table.displayColumn()
public static final DisplayLevel summary
Column
s to be included in a summary of
records in a set.
This is the default display level for a Column
.
Table.getSummaryDisplayColumns()
,
Column.defaultDisplayLevel()
,
Persistent.getSummaryDisplayFields()
public static final DisplayLevel record
Column
s included in display focusing on a
single record, but without detail.
Table.getRecordDisplayColumns()
,
Persistent.getRecordDisplayFields()
public static final DisplayLevel detail
Column
s included in a detailed display
of a single record.
Table.getRecordDisplayColumns()
,
Persistent.getDetailDisplayFields()
public static final DisplayLevel never
Column
s hidden from users.
Method Detail |
---|
public String getName()
public Integer getIndex()
public static DisplayLevel forIndex(int index)
index
- the numeric Id of the level
public static int count()
public static DisplayLevel named(String name)
name
- The name of the required level
public String toString()
toString
in class Object
Object.toString()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |