ElegantJ Data Entry Masks Java API Specification v1.1

com.elegantj.editors
Class AWTTitleBorder

java.lang.Object
  extended bycom.elegantj.editors.AWTBorder
      extended bycom.elegantj.editors.AWTTitleBorder
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class AWTTitleBorder
extends AWTBorder
implements java.io.Externalizable

This class represents different borders. There are four basic types of the borders NONE, SIMPLE, RAISED, LOWERED with specified border size specified border color, specified title, specified title font, and specified title color

See Also:
Serialized Form

Field Summary
static int CENTER
          Center position of the title
static int LEFT
          Left position of the title
static int RIGHT
          Right position of the title
 
Fields inherited from class com.elegantj.editors.AWTBorder
borderColor, borderType, borderWidth, LOWERED, NONE, POINT1, POINT2, POINT3, POINT4, POINT5, RAISED, SIMPLE
 
Constructor Summary
AWTTitleBorder()
          Default constructor constructs border with border type simple, border width 1, border color black, title is "" title font is Dialog, plain, 10 title color is black title position is center
AWTTitleBorder(int borderType, int borderWidth, java.awt.Color borderColor, java.lang.String title, java.awt.Font titleFont, java.awt.Color titleColor, int titlePosition)
          Constructs the border object with specified parameters
 
Method Summary
 java.lang.String getTitle()
          Method which returns the title of the border
 java.awt.Color getTitleColor()
          Method which returns the title color of the title
 java.awt.Font getTitleFont()
          Method which returns the title font
 int getTitlePosition()
          Method which returns the title position of the title
 void readExternal(java.io.ObjectInput in)
          Implementation of the readExternal
 void setTitle(java.lang.String title)
          Method which sets the title
 void setTitleColor(java.awt.Color titleColor)
          Method which sets the title color of the title
 void setTitleFont(java.awt.Font titleFont)
          Method which sets the title font
 void setTitlePosition(int titlePosition)
          Method which sets the title position of the title
 void writeExternal(java.io.ObjectOutput out)
          Implementation of the writeExternal
 
Methods inherited from class com.elegantj.editors.AWTBorder
getBorderColor, getBorderType, getBorderWidth, paintBorder, setBorderColor, setBorderType, setBorderWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEFT

public static int LEFT
Left position of the title


CENTER

public static int CENTER
Center position of the title


RIGHT

public static int RIGHT
Right position of the title

Constructor Detail

AWTTitleBorder

public AWTTitleBorder()
Default constructor constructs border with border type simple, border width 1, border color black, title is "" title font is Dialog, plain, 10 title color is black title position is center


AWTTitleBorder

public AWTTitleBorder(int borderType,
                      int borderWidth,
                      java.awt.Color borderColor,
                      java.lang.String title,
                      java.awt.Font titleFont,
                      java.awt.Color titleColor,
                      int titlePosition)
Constructs the border object with specified parameters

Parameters:
borderType - The border type @see NONE, SIMPLE, RAISED, LOWERED
borderWidth - The border width
borderColor - The border color
title - The title
titleFont - The font for the title
titleColor - The color for the title
titlePosition - The title position
Method Detail

setTitle

public void setTitle(java.lang.String title)
Method which sets the title

Parameters:
title - the title

getTitle

public java.lang.String getTitle()
Method which returns the title of the border

Returns:
The title of the border

setTitleFont

public void setTitleFont(java.awt.Font titleFont)
Method which sets the title font

Parameters:
titleFont - the title font

getTitleFont

public java.awt.Font getTitleFont()
Method which returns the title font

Returns:
The title font

setTitleColor

public void setTitleColor(java.awt.Color titleColor)
Method which sets the title color of the title

Parameters:
titleColor - The title color of the title

getTitleColor

public java.awt.Color getTitleColor()
Method which returns the title color of the title

Returns:
The title color of the title

setTitlePosition

public void setTitlePosition(int titlePosition)
Method which sets the title position of the title

Parameters:
titlePosition - The title position of the title
See Also:
LEFT, CENTER, RIGHT

getTitlePosition

public int getTitlePosition()
Method which returns the title position of the title

Returns:
The title position of the title
See Also:
LEFT, CENTER, RIGHT

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Implementation of the writeExternal

Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class AWTBorder
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Implementation of the readExternal

Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class AWTBorder
Throws:
java.io.IOException
java.lang.ClassNotFoundException

ElegantJ Data Entry Masks Java API Specification v1.1

Submit a bug or feature

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjbeans.com
All Rights Reserved.