Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

oracle.ide.inspector.layout
Class Spring

java.lang.Object
  extended by oracle.ide.inspector.layout.SimpleElement
      extended by oracle.ide.inspector.layout.Spring
All Implemented Interfaces:
Element

public abstract class Spring
extends SimpleElement

A Spring controls distance between properties in a Row element.

In general, a Property encapsulates the property label, and a property editor UI. The size of these UI componets is controlled by the JComponent.getPreferredSize(), JComponent.getMinimumSize(), and the JComponent.getMaximumSize() method.

To control the distance between two properties, an edge and a property place a Spring object between the properties or the property and the edge. The getPreferredLength(), getMinimumLength(), and getMaximumLength() controls the behavior of the spring object according to the rules of the Spring object.


Field Summary
static java.lang.String MAXIMUM_LENGTH
           
static java.lang.String MINIMUM_LENGTH
           
static java.lang.String PREFERRED_LENGTH
           
static java.lang.String SPRING
           
 
Fields inherited from interface oracle.ide.inspector.layout.Element
EXTENDS, ID, PART_OF
 
Constructor Summary
Spring()
           
 
Method Summary
abstract  int getMaximumLength()
          Get the maximum length of the Spring.
abstract  int getMinimumLength()
          Get the minimum length of the Spring.
abstract  int getPreferredLength()
          Get the preferred length of the Spring.
 java.lang.String toString()
           
 
Methods inherited from class oracle.ide.inspector.layout.SimpleElement
getChildren, getExtensible, isExtensible, mayHaveChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SPRING

public static final java.lang.String SPRING
See Also:
Constant Field Values

PREFERRED_LENGTH

public static final java.lang.String PREFERRED_LENGTH
See Also:
Constant Field Values

MINIMUM_LENGTH

public static final java.lang.String MINIMUM_LENGTH
See Also:
Constant Field Values

MAXIMUM_LENGTH

public static final java.lang.String MAXIMUM_LENGTH
See Also:
Constant Field Values
Constructor Detail

Spring

public Spring()
Method Detail

getPreferredLength

public abstract int getPreferredLength()
Get the preferred length of the Spring.

Returns:
the preferred length of the Spring.

getMinimumLength

public abstract int getMinimumLength()
Get the minimum length of the Spring.

Returns:
the minimum length of the Spring.

getMaximumLength

public abstract int getMaximumLength()
Get the maximum length of the Spring.

Returns:
the maximum length of the Spring.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

Copyright © 1997, 2013, Oracle. All rights reserved.