|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.flagstone.transform.TabOrder
public final class TabOrder
The TabOrder class is used to set the tabbing order of text fields, movie clips and buttons visible on the display list.
The objects are referenced by the number of the layer on which they displayed rather than the unique identifier. This differs from the other classes in the framework but it does allow objects creating at run-time by ActionScript statements to be referenced.
Field Summary | |
---|---|
static int |
MAX_TAB
The highest index when defining an objects tab order. |
Constructor Summary | |
---|---|
TabOrder(int level,
int idx)
Construct a TabOrder object that set the tab order for the object on the display list at the specified layer. |
|
TabOrder(SWFDecoder coder)
Creates and initialises a TabOrder object using values encoded in the Flash binary format. |
|
TabOrder(TabOrder object)
Creates and initialises a TabOrder object using the values copied from another TabOrder object. |
Method Summary | |
---|---|
TabOrder |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
int |
getIndex()
Get the index of the object in the tabbing order. |
int |
getLayer()
Get the layer number which contains the object assigned to the tabbing order. |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
void |
setIndex(int idx)
Sets the index of the object in the tabbing order. |
void |
setLayer(int level)
Sets the layer number which contains the object assigned to the tabbing order. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MAX_TAB
Constructor Detail |
---|
public TabOrder(SWFDecoder coder) throws IOException
coder
- an SWFDecoder object that contains the encoded Flash data.
IOException
- if an error occurs while decoding the data.public TabOrder(int level, int idx)
level
- the layer number which contains the object assigned to the
tabbing order. Must be in the range 1..65535.idx
- the index of the object in the tabbing order. Must be in the
range 0..65535.public TabOrder(TabOrder object)
object
- a TabOrder object from which the values will be
copied.Method Detail |
---|
public int getLayer()
public void setLayer(int level)
level
- the layer number. Must be in the range 1..65535.public int getIndex()
public void setIndex(int idx)
idx
- the index in the tabbing order. Must be in the range 0..65535.public TabOrder copy()
copy
in interface Copyable<MovieTag>
public String toString()
toString
in class Object
public int prepareToEncode(Context context)
prepareToEncode
in interface SWFEncodeable
context
- an Context that allows information to be passed between
objects to control how they are initialised for encoding.
public void encode(SWFEncoder coder, Context context) throws IOException
encode
in interface SWFEncodeable
coder
- an SWFEncoder object.context
- an Context that allows information to be passed between
objects to control how they are initialised for encoding.
IOException
- if an error occurs while encoding the object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |