net.infonode.tabbedpanel.titledtab
Class TitledTabBorderSizePolicy

java.lang.Object
  extended by net.infonode.util.Enum
      extended by net.infonode.tabbedpanel.titledtab.TitledTabBorderSizePolicy
All Implemented Interfaces:
java.io.Serializable, Writable

public final class TitledTabBorderSizePolicy
extends Enum

TitledTabBorderSizePolicy defines how the insets for the titled tab should be calculated based on the borders for the different tab states. If the states have borders with different insets titled tab can use the same insets for each state based on the maximum insets (top, left, bottom, right) for each state. The compensated insets will be added on the inside of the borders.

Version:
$Revision: 1.8 $
Author:
$Author: jesper $
See Also:
TitledTab, TitledTabProperties, Serialized Form

Field Summary
static TitledTabBorderSizePolicy EQUAL_SIZE
          Equal size policy.
static TitledTabBorderSizePolicy INDIVIDUAL_SIZE
          Individual size policy.
private static long serialVersionUID
           
static TitledTabBorderSizePolicy[] SIZE_POLICIES
          An array with all size policies
 
Constructor Summary
private TitledTabBorderSizePolicy(int value, java.lang.String name)
           
 
Method Summary
static TitledTabBorderSizePolicy[] getSizePolicies()
          Gets the titled tab border size policies.
 
Methods inherited from class net.infonode.util.Enum
decode, getName, getObject, getValue, readResolve, toString, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

EQUAL_SIZE

public static final TitledTabBorderSizePolicy EQUAL_SIZE
Equal size policy. This means that if the different tab states have borders with different insets titled tab will use the same insets for each state based on the maximum insets (top, left, bottom, right) for each state. The compensated insets will be added on the inside of the borders.


INDIVIDUAL_SIZE

public static final TitledTabBorderSizePolicy INDIVIDUAL_SIZE
Individual size policy. This means that titled tab will use the borders for each state as they are and not modify any insets. If the borders for the different states have different insets, then the titled tab's insets will be different depending on the state the tab is currently in.


SIZE_POLICIES

public static final TitledTabBorderSizePolicy[] SIZE_POLICIES
An array with all size policies

Constructor Detail

TitledTabBorderSizePolicy

private TitledTabBorderSizePolicy(int value,
                                  java.lang.String name)
Method Detail

getSizePolicies

public static TitledTabBorderSizePolicy[] getSizePolicies()
Gets the titled tab border size policies.

Returns:
the titled tab border size policies
Since:
ITP 1.1.0