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

Quick Search    Search Deep

com.anotherbigidea.flash.movie
Class EditField  view EditField download EditField.java

java.lang.Object
  extended bycom.anotherbigidea.flash.movie.Symbol
      extended bycom.anotherbigidea.flash.movie.EditField

public class EditField
extends Symbol

An Edit Field Symbol. In order to limit the chars in the field use a separate font and only load those glyphs that are required.


Field Summary
protected  int alignment
           
protected  int charLimit
           
protected  java.lang.String fieldName
           
protected  Font font
           
protected  double fontSize
           
protected  boolean hasBorder
           
protected  boolean hasWordWrap
           
protected  double indentation
           
protected  java.lang.String initialText
           
protected  boolean isEditable
           
protected  boolean isHtml
           
protected  boolean isMultiline
           
protected  boolean isPassword
           
protected  boolean isSelectable
           
protected  double leftMargin
           
protected  double lineSpacing
           
protected  double maxX
           
protected  double maxY
           
protected  double minX
           
protected  double minY
           
protected  double rightMargin
           
protected  com.anotherbigidea.flash.structs.AlphaColor textColor
           
protected  boolean usesSystemFont
           
 
Fields inherited from class com.anotherbigidea.flash.movie.Symbol
id
 
Constructor Summary
EditField(java.lang.String fieldName, java.lang.String initialText, Font font, double fontSize, double minX, double minY, double maxX, double maxY)
          Create an Edit Field with black text and default settings
 
Method Summary
protected  int defineSymbol(Movie movie, com.anotherbigidea.flash.interfaces.SWFTagTypes timelineWriter, com.anotherbigidea.flash.interfaces.SWFTagTypes definitionWriter)
          Override to provide symbol definition
 int getAlignment()
           
 int getCharLimit()
           
 java.lang.String getFieldName()
           
 Font getFont()
           
 double getFontSize()
           
 double getIndentation()
           
 java.lang.String getInitialText()
           
 double getLeftMargin()
           
 double getLineSpacing()
           
 double getMaxX()
           
 double getMaxY()
           
 double getMinX()
           
 double getMinY()
           
 double getRightMargin()
           
 com.anotherbigidea.flash.structs.AlphaColor getTextColor()
           
 boolean hasBorder()
           
 boolean hasWordWrap()
           
 boolean isEditable()
           
 boolean isHtml()
           
 boolean isMultiline()
           
 boolean isPassword()
           
 boolean isSelectable()
           
 void setAlignment(int alignment)
           
 void setCharLimit(int charLimit)
           
 void setFieldName(java.lang.String name)
           
 void setFont(Font font)
           
 void setFontSize(double fontSize)
           
 void setIndentation(double indentation)
           
 void setInitialText(java.lang.String text)
           
 void setLeftMargin(double leftMargin)
           
 void setLineSpacing(double lineSpacing)
           
 void setMaxX(double maxX)
           
 void setMaxY(double maxY)
           
 void setMinX(double minX)
           
 void setMinY(double minY)
           
 void setProperties(boolean isSelectable, boolean hasBorder, boolean isHtml, boolean usesSystemFont, boolean hasWordWrap, boolean isMultiline, boolean isPassword, boolean isEditable)
           
 void setRightMargin(double rightMargin)
           
 void setTextColor(com.anotherbigidea.flash.structs.AlphaColor color)
           
 boolean usesSystemFont()
           
 
Methods inherited from class com.anotherbigidea.flash.movie.Symbol
define, getId, getNextId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

textColor

protected com.anotherbigidea.flash.structs.AlphaColor textColor

alignment

protected int alignment

charLimit

protected int charLimit

leftMargin

protected double leftMargin

rightMargin

protected double rightMargin

indentation

protected double indentation

lineSpacing

protected double lineSpacing

fieldName

protected java.lang.String fieldName

initialText

protected java.lang.String initialText

font

protected Font font

fontSize

protected double fontSize

minX

protected double minX

minY

protected double minY

maxX

protected double maxX

maxY

protected double maxY

isSelectable

protected boolean isSelectable

hasBorder

protected boolean hasBorder

isHtml

protected boolean isHtml

usesSystemFont

protected boolean usesSystemFont

hasWordWrap

protected boolean hasWordWrap

isMultiline

protected boolean isMultiline

isPassword

protected boolean isPassword

isEditable

protected boolean isEditable
Constructor Detail

EditField

public EditField(java.lang.String fieldName,
                 java.lang.String initialText,
                 Font font,
                 double fontSize,
                 double minX,
                 double minY,
                 double maxX,
                 double maxY)
Create an Edit Field with black text and default settings

Method Detail

isSelectable

public boolean isSelectable()

hasBorder

public boolean hasBorder()

isHtml

public boolean isHtml()

usesSystemFont

public boolean usesSystemFont()

hasWordWrap

public boolean hasWordWrap()

isMultiline

public boolean isMultiline()

isPassword

public boolean isPassword()

isEditable

public boolean isEditable()

setProperties

public void setProperties(boolean isSelectable,
                          boolean hasBorder,
                          boolean isHtml,
                          boolean usesSystemFont,
                          boolean hasWordWrap,
                          boolean isMultiline,
                          boolean isPassword,
                          boolean isEditable)

getTextColor

public com.anotherbigidea.flash.structs.AlphaColor getTextColor()

getAlignment

public int getAlignment()

getCharLimit

public int getCharLimit()

getLeftMargin

public double getLeftMargin()

getRightMargin

public double getRightMargin()

getIndentation

public double getIndentation()

getLineSpacing

public double getLineSpacing()

getFieldName

public java.lang.String getFieldName()

getInitialText

public java.lang.String getInitialText()

getFont

public Font getFont()

getFontSize

public double getFontSize()

getMinX

public double getMinX()

getMinY

public double getMinY()

getMaxX

public double getMaxX()

getMaxY

public double getMaxY()

setTextColor

public void setTextColor(com.anotherbigidea.flash.structs.AlphaColor color)

setAlignment

public void setAlignment(int alignment)

setCharLimit

public void setCharLimit(int charLimit)

setLeftMargin

public void setLeftMargin(double leftMargin)

setRightMargin

public void setRightMargin(double rightMargin)

setIndentation

public void setIndentation(double indentation)

setLineSpacing

public void setLineSpacing(double lineSpacing)

setFieldName

public void setFieldName(java.lang.String name)

setInitialText

public void setInitialText(java.lang.String text)

setFont

public void setFont(Font font)

setFontSize

public void setFontSize(double fontSize)

setMinX

public void setMinX(double minX)

setMinY

public void setMinY(double minY)

setMaxX

public void setMaxX(double maxX)

setMaxY

public void setMaxY(double maxY)

defineSymbol

protected int defineSymbol(Movie movie,
                           com.anotherbigidea.flash.interfaces.SWFTagTypes timelineWriter,
                           com.anotherbigidea.flash.interfaces.SWFTagTypes definitionWriter)
                    throws java.io.IOException
Description copied from class: Symbol
Override to provide symbol definition

Specified by:
defineSymbol in class Symbol