Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.common.awt
Class FlexBorderPanel  view FlexBorderPanel download FlexBorderPanel.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended bycom.flexstor.common.awt.FlexBorderPanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class FlexBorderPanel
extends java.awt.Panel


Nested Class Summary
 
Nested classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
static int ALIGN_CENTERED
           
static int ALIGN_LEFT
           
static int ALIGN_RIGHT
           
static int BEVEL_LINE
           
static int BEVEL_LOWERED
           
static int BEVEL_NONE
           
static int BEVEL_RAISED
           
protected  java.awt.Color bevelDarkerColor
           
protected  java.awt.Color bevelLighterColor
           
protected  java.awt.Color borderColor
           
protected  java.awt.Color cachedBackground
           
protected  java.util.Vector cListeners
           
protected  java.awt.Insets internalInsets
           
protected  int ixPad
           
protected  int iyPadBottom
           
protected  int iyPadTop
           
protected  java.lang.String label
           
protected  int labelAlignment
           
protected  java.awt.Color labelColor
           
protected static int labelipadx
           
protected static int labelpadx
           
(package private)  java.awt.Dimension oldSize
           
protected  int padbottom
           
protected  int padleft
           
protected  int padright
           
protected  int padtop
           
protected  java.awt.Panel panel
           
protected  int style
           
 
Fields inherited from class java.awt.Panel
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
FlexBorderPanel()
           
FlexBorderPanel(java.lang.String s)
           
FlexBorderPanel(java.lang.String s, int alignment, int style)
           
 
Method Summary
protected  int getLabelTopMargin()
           
 java.awt.Dimension getMinimumSize()
          Returns the minimum size of this container.
 java.awt.Dimension getPreferredSize()
          Added size methods because Symantec's BorderPanel does not return a calculated dimension but a fixed size.
 void setAlignStyle(int newLabelAlignment)
           
 void setBevelStyle(int newBevelStyle)
           
 void setIPadBottom(int b)
           
 void setLabel(java.lang.String newLabel)
           
 void setPadding(int t, int b, int l, int r)
           
 void setPaddingBottom(int newPadBottom)
           
 void setPaddingLeft(int newPadLeft)
           
 void setPaddingRight(int newPadRight)
           
 void setPaddingTop(int newPadTop)
           
protected  void sizepanel(boolean force)
           
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BEVEL_LOWERED

public static final int BEVEL_LOWERED
See Also:
Constant Field Values

BEVEL_RAISED

public static final int BEVEL_RAISED
See Also:
Constant Field Values

BEVEL_LINE

public static final int BEVEL_LINE
See Also:
Constant Field Values

ALIGN_LEFT

public static final int ALIGN_LEFT
See Also:
Constant Field Values

ALIGN_CENTERED

public static final int ALIGN_CENTERED
See Also:
Constant Field Values

ALIGN_RIGHT

public static final int ALIGN_RIGHT
See Also:
Constant Field Values

BEVEL_NONE

public static final int BEVEL_NONE
See Also:
Constant Field Values

oldSize

java.awt.Dimension oldSize

labelpadx

protected static final int labelpadx
See Also:
Constant Field Values

labelipadx

protected static final int labelipadx
See Also:
Constant Field Values

cachedBackground

protected java.awt.Color cachedBackground

borderColor

protected java.awt.Color borderColor

bevelLighterColor

protected java.awt.Color bevelLighterColor

bevelDarkerColor

protected java.awt.Color bevelDarkerColor

labelColor

protected java.awt.Color labelColor

padtop

protected int padtop

padbottom

protected int padbottom

padleft

protected int padleft

padright

protected int padright

ixPad

protected int ixPad

iyPadTop

protected int iyPadTop

iyPadBottom

protected int iyPadBottom

style

protected int style

label

protected java.lang.String label

labelAlignment

protected int labelAlignment

internalInsets

protected java.awt.Insets internalInsets

panel

protected java.awt.Panel panel

cListeners

protected java.util.Vector cListeners
Constructor Detail

FlexBorderPanel

public FlexBorderPanel()

FlexBorderPanel

public FlexBorderPanel(java.lang.String s)

FlexBorderPanel

public FlexBorderPanel(java.lang.String s,
                       int alignment,
                       int style)
Method Detail

getPreferredSize

public java.awt.Dimension getPreferredSize()
Added size methods because Symantec's BorderPanel does not return a calculated dimension but a fixed size.


getMinimumSize

public java.awt.Dimension getMinimumSize()
Description copied from class: java.awt.Container
Returns the minimum size of this container.


sizepanel

protected void sizepanel(boolean force)

getLabelTopMargin

protected int getLabelTopMargin()

setBevelStyle

public void setBevelStyle(int newBevelStyle)

setPaddingTop

public void setPaddingTop(int newPadTop)

setPaddingBottom

public void setPaddingBottom(int newPadBottom)

setPaddingLeft

public void setPaddingLeft(int newPadLeft)

setPaddingRight

public void setPaddingRight(int newPadRight)

setLabel

public void setLabel(java.lang.String newLabel)

setAlignStyle

public void setAlignStyle(int newLabelAlignment)

setPadding

public void setPadding(int t,
                       int b,
                       int l,
                       int r)

setIPadBottom

public void setIPadBottom(int b)