public enum LayoutType extends Enum<LayoutType>
The GNU General Public License for details.
Enum Constant and Description |
---|
MDI
Multiple Document View
|
TDI
Tabbed View
|
Modifier and Type | Field and Description |
---|---|
private AbstractViewLayout |
layout
The actual layout
|
Modifier and Type | Method and Description |
---|---|
abstract AbstractViewLayout |
createLayout()
Create the appropriate kind of view layout
|
static LayoutType |
fromInteger(int ordinal)
Lookup method by ordinal value
|
static LayoutType |
fromString(String name)
Lookup method to convert from a String
|
AbstractViewLayout |
getLayout()
Return the layout
|
int |
toInteger()
Get an integer representation for this LayoutType
|
static LayoutType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LayoutType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LayoutType TDI
public static final LayoutType MDI
private transient AbstractViewLayout layout
public static LayoutType[] values()
for (LayoutType c : LayoutType.values()) System.out.println(c);
public static LayoutType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic AbstractViewLayout getLayout()
public abstract AbstractViewLayout createLayout()
public int toInteger()
public static LayoutType fromString(String name)
public static LayoutType fromInteger(int ordinal)