com.levigo.util.swing
Enum CollapsiblePane.Style

java.lang.Object
  extended by java.lang.Enum<CollapsiblePane.Style>
      extended by com.levigo.util.swing.CollapsiblePane.Style
All Implemented Interfaces:
Serializable, Comparable<CollapsiblePane.Style>
Enclosing class:
CollapsiblePane

public static enum CollapsiblePane.Style
extends Enum<CollapsiblePane.Style>

Enum for possible options regarding the strategy how a shrunken collapsible pane lays out its contents. This is only used with animation enabled while the open/collapse is being animated..


Enum Constant Summary
DOWN
          Push the contents to the bottom
LEFT
          Push the contents to the left
RIGHT
          Push the contents to the right
SQUEEZE_HORIZONZAL
          Squeeze the contents horizontally to fit the animated size.
SQUEEZE_VERTICAL
          Squeeze the contents vertically to fit the animated size.
UP
          Push the contents to the top
 
Method Summary
static CollapsiblePane.Style valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CollapsiblePane.Style[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SQUEEZE_HORIZONZAL

public static final CollapsiblePane.Style SQUEEZE_HORIZONZAL
Squeeze the contents horizontally to fit the animated size. How the content pane is laid out while it is smaller than its preferred size (and probably also smaller than its minimum size) is up to the content pane's layout manager. This might look somewhat messy.


SQUEEZE_VERTICAL

public static final CollapsiblePane.Style SQUEEZE_VERTICAL
Squeeze the contents vertically to fit the animated size. How the content pane is laid out while it is smaller than its preferred size (and probably also smaller than its minimum size) is up to the content pane's layout manager. This might look somewhat messy.


UP

public static final CollapsiblePane.Style UP
Push the contents to the top


DOWN

public static final CollapsiblePane.Style DOWN
Push the contents to the bottom


LEFT

public static final CollapsiblePane.Style LEFT
Push the contents to the left


RIGHT

public static final CollapsiblePane.Style RIGHT
Push the contents to the right

Method Detail

values

public static CollapsiblePane.Style[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (CollapsiblePane.Style c : CollapsiblePane.Style.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CollapsiblePane.Style valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.