Class KaAPI.KFrameAgent
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class KaAPI.KFrameAgent

java.lang.Object
   |
   +----KaAPI.KFrameAgent

public class KFrameAgent
extends Object
This acts as an Agent between the KUIComponents and KFrame.An instance of this class is automatically created by KFrame object and is passed to KUIComponents during init time.
Version:
1.1 20 Aug 1996
Author:
shiva

Constructor Index

 o KFrameAgent(KFrame)
The user should not create an instance of this class.

Method Index

 o cloneKUIC(KUIComponent)
Clones an un-named KUIComponent from the KUIComponent reference.The arguments of the KUIComponent referenced by kuicRef is used for the cloned component.
 o cloneKUIC(KUIComponent, String)
Clones a named KUIComponent from the KUIComponent reference.The arguments of the KUIComponent referenced by kuicRef is used for the cloned component.
 o cloneKUIC(KUIComponent, String, String[], String[], String[], String[])
Clones a KUIComponent from the KUIComponent reference.
 o cloneKUIC(String)
Clones an un-named KUIComponent from the variable name given.The arguments of the KUIComponent referenced by the variable name is used for the cloned component.
 o cloneKUIC(String, String)
Clones a named KUIComponent from the variable name given.The arguments of the KUIComponent referenced by the variable name is used for the cloned component.
 o cloneKUIC(String, String, String[], String[], String[], String[])
Clones a KUIComponent from the variable name given.Any of the arguments except the varName can be 'null' in which case the corresponding information from KUIComponent referenced by varName is taken.
 o closeFrame(boolean)
Closes the KFrame object associated with the Agent.
 o getArguments()
This returns the Arguments that are specified in <ARGS_AWT> field in the format file.This should be called only in the constructor of the KUIComponent.
 o getArguments(int)
This returns the Arguments that are specified in <ARGS_AWT> field in the format file at the index specified.
 o getAwtArgs(KUIComponent)
Returns the Awt arguments for KUIComponent kuicRef
 o getAwtArgs(String)
Returns the Awt arguments for KUIComponent referenced by varName.
 o GetColor(String)
Converts color string to java.awt.Color
 o getFrame()
Returns a reference to the KaAPI.KFrame object.
 o getKaapiArgs(KUIComponent)
Returns the Kaapi arguments for KUIComponent kuicRef
 o getKaapiArgs(String)
Returns the Kaapi arguments for KUIComponent referenced by varName.
 o getKUIC(String)
Returns a reference to the KUIComponent given an instance name.
 o getKuicArgs(KUIComponent)
Returns the Kuic arguments for KUIComponent kuicRef
 o getKuicArgs(String)
Returns the Kuic arguments for KUIComponent referenced by varName.
 o getLocation(String[])
This returns the location information.
 o GetLocationString(int)
Converts Location represented as int to a Location String.
 o getUicLinks(KUIComponent)
Returns the Uiclinks arguments for KUIComponent kuicRef
 o getUicLinks(String)
Returns the Uiclinks arguments for KUIComponent referenced by varName.
 o getVariableName(KUIComponent)
Returns the variable name of the KUIComponent given a reference to a KUIComponent
 o getVisibility(String[])
This returns the visibility information.
 o setVisibility(KUIComponent, int)
This changes the visibility for a KUIComponent
 o setVisibility(String, int)
This changes the visibility for a KUIComponent
 o ToNativePath(String)
Converts any pathnames to the native pathnames.

Constructors

 o KFrameAgent
  public KFrameAgent(KFrame kFrame)
The user should not create an instance of this class.
Parameters:
kFrame - the instance of KaAPI.KFrame

Methods

 o getArguments
  public String[] getArguments()
This returns the Arguments that are specified in <ARGS_AWT> field in the format file.This should be called only in the constructor of the KUIComponent.
Returns:
the Arguments specified in <ARGS_AWT> field in format file
 o getArguments
  public String getArguments(int index)
This returns the Arguments that are specified in <ARGS_AWT> field in the format file at the index specified. This should be called only in the constructor of the KUIComponent.
Parameters:
index - the index into the list of arguments.
Returns:
the Arguments specified in <ARGS_AWT> field in format file
 o getKUIC
  public KUIComponent getKUIC(String varName)
Returns a reference to the KUIComponent given an instance name.
Parameters:
varName - the name of the instance
Returns:
the reference to the KUIComponent
 o getVariableName
  public String getVariableName(KUIComponent kuicRef)
Returns the variable name of the KUIComponent given a reference to a KUIComponent
Parameters:
kuicRef - reference to a KUIComponent
Returns:
the variable name of the KUIComponent
 o getFrame
  public Frame getFrame()
Returns a reference to the KaAPI.KFrame object. This call can be used to get the parent frame when creating Dialogs.
Returns:
the KaAPI.KFrame
 o getLocation
  public int getLocation(String argsKaapi[])
This returns the location information.
Parameters:
argsKaapi - arguments for KaAPI as speciifed in the format file
Returns:
the location as KUIComponent.UIC_LOCATION_XXXX
 o getVisibility
  public int getVisibility(String argsKaapi[])
This returns the visibility information.
Parameters:
argsKaapi - arguments for KaAPI as speciifed in the format file
Returns:
the KUIComponent.UIC_VISIBILITY_XXXX
 o setVisibility
  public boolean setVisibility(String kuicName,
                               int visFlag)
This changes the visibility for a KUIComponent
Parameters:
kuicName - name of the KUIComponent specified in format file
visFlag - should be KUIComponent.UIC_VISIBILITY_XXXX
Returns:
true if the visibility change has been accepted by the KUIComponent, false otherwise
 o setVisibility
  public boolean setVisibility(KUIComponent kuic,
                               int visFlag)
This changes the visibility for a KUIComponent
Parameters:
kuic - reference to KUIComponent
visFlag - should be KUIComponent.UIC_VISIBILITY_XXXX
Returns:
true if the visibility change has been accepted by the KUIComponent, false otherwise
 o cloneKUIC
  public KUIComponent cloneKUIC(String varName)
Clones an un-named KUIComponent from the variable name given.The arguments of the KUIComponent referenced by the variable name is used for the cloned component.
Parameters:
varName - KUIComponent's variable name
Returns:
KUIComponent on successful cloning and null on failure
 o cloneKUIC
  public KUIComponent cloneKUIC(String varName,
                                String varNameForClone)
Clones a named KUIComponent from the variable name given.The arguments of the KUIComponent referenced by the variable name is used for the cloned component.
Parameters:
varName - KUIComponent's variable name
varNameForClone - variable name for the clone component
Returns:
KUIComponent on successful cloning and null on failure
 o cloneKUIC
  public KUIComponent cloneKUIC(KUIComponent kuicRef)
Clones an un-named KUIComponent from the KUIComponent reference.The arguments of the KUIComponent referenced by kuicRef is used for the cloned component.
Parameters:
kuicRef - object instance of KUIComponent
Returns:
KUIComponent on successful cloning and null on failure
 o cloneKUIC
  public KUIComponent cloneKUIC(KUIComponent kuicRef,
                                String varNameForClone)
Clones a named KUIComponent from the KUIComponent reference.The arguments of the KUIComponent referenced by kuicRef is used for the cloned component.
Parameters:
kuicRef - object instance of KUIComponent
varNameForClone - variable name for the clone component
Returns:
KUIComponent on successful cloning and null on failure
 o cloneKUIC
  public KUIComponent cloneKUIC(String varName,
                                String varNameForClone,
                                String argsKaapi[],
                                String argsAwt[],
                                String argsKuic[],
                                String uicLinks[])
Clones a KUIComponent from the variable name given.Any of the arguments except the varName can be 'null' in which case the corresponding information from KUIComponent referenced by varName is taken.
Parameters:
varName - KUIComponent's variable name
varNameForClone - variable name for the clone component
argsKaapi - Kaapi arguments
argsAwt - Awt arguments
argsKuic - Kuic arguments
uicLinks - UIC links arguments
Returns:
KUIComponent on successful cloning and null on failure
See Also:
getKaapiArgs, getKuicArgs, getAwtArgs, getUicLinks
 o cloneKUIC
  public KUIComponent cloneKUIC(KUIComponent kuicRef,
                                String varNameForClone,
                                String argsKaapi[],
                                String argsAwt[],
                                String argsKuic[],
                                String uicLinks[])
Clones a KUIComponent from the KUIComponent reference. Any of the arguments except kuicRef can be 'null' in which case the corresponding information from KUIComponent referenced by kuicRef is taken.
Parameters:
kuicRef - object instance of KUIComponent
varNameForClone - variable name for the clone component
argsKaapi - Kaapi arguments
argsAwt - Awt arguments
argsKuic - Kuic arguments
uicLinks - UIC links arguments
Returns:
KUIComponent on successful cloning and null on failure
See Also:
getKaapiArgs, getKuicArgs, getAwtArgs, getUicLinks
 o getKaapiArgs
  public String[] getKaapiArgs(String varName)
Returns the Kaapi arguments for KUIComponent referenced by varName.
Parameters:
varName - the name of the KUIComponent
Returns:
the Kaapi arguments
 o getKaapiArgs
  public String[] getKaapiArgs(KUIComponent kuicRef)
Returns the Kaapi arguments for KUIComponent kuicRef
Parameters:
kuicRef - reference to a KUIComponent
Returns:
the Kaapi arguments
 o getAwtArgs
  public String[] getAwtArgs(String varName)
Returns the Awt arguments for KUIComponent referenced by varName.
Parameters:
varName - the name of the KUIComponent
Returns:
the Awt arguments
 o getAwtArgs
  public String[] getAwtArgs(KUIComponent kuicRef)
Returns the Awt arguments for KUIComponent kuicRef
Parameters:
kuicRef - reference to a KUIComponent
Returns:
the Awt arguments
 o getKuicArgs
  public String[] getKuicArgs(String varName)
Returns the Kuic arguments for KUIComponent referenced by varName.
Parameters:
varName - the name of the KUIComponent
Returns:
the Kuic arguments
 o getKuicArgs
  public String[] getKuicArgs(KUIComponent kuicRef)
Returns the Kuic arguments for KUIComponent kuicRef
Parameters:
kuicRef - reference to a KUIComponent
Returns:
the Kuic arguments
 o getUicLinks
  public String[] getUicLinks(String varName)
Returns the Uiclinks arguments for KUIComponent referenced by varName.
Parameters:
varName - the name of the KUIComponent
Returns:
the Uiclinks arguments
 o getUicLinks
  public String[] getUicLinks(KUIComponent kuicRef)
Returns the Uiclinks arguments for KUIComponent kuicRef
Parameters:
kuicRef - reference to a KUIComponent
Returns:
the Uiclinks arguments
 o closeFrame
  public void closeFrame(boolean exitApp)
Closes the KFrame object associated with the Agent. If the exitApp is true then all KFrames associated with the application are closed, else only the KFrame object of the Agent is closed.
Parameters:
exitApp - flag to indicate the Frame(s) to be closed
 o GetColor
  public static Color GetColor(String colorString)
Converts color string to java.awt.Color
Parameters:
colorString - strings like "red","blue" etc
Returns:
the predefined colors in java.awt.Color
See Also:
Color
 o GetLocationString
  public static String GetLocationString(int location)
Converts Location represented as int to a Location String. For example if location is UIC_LOCATION_SOUTH the value returned is "South"
Parameters:
location - should be any UIC_LOCATION_XXXX constant defined in KUIComponent interface
Returns:
Location as a java.lang.String
See Also:
KUIComponent
 o ToNativePath
  public static String ToNativePath(String pathName)
Converts any pathnames to the native pathnames.
Parameters:
pathName - the path that needs to converted.
Returns:
converted pathname

All Packages  Class Hierarchy  This Package  Previous  Next  Index