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

Quick Search    Search Deep

com.flexstor.remote.script
Class ScriptableFrame  view ScriptableFrame download ScriptableFrame.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Frame
                  extended bycom.flexstor.remote.script.ScriptableFrame
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class ScriptableFrame
extends java.awt.Frame


Nested Class Summary
 
Nested classes inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
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
(package private)  java.util.Vector assetKeys
           
(package private)  java.util.Hashtable assetRecords
           
(package private)  com.flexstor.common.data.ejb.disguiserecord.DisguiseAssetRecordData currentAsset
           
(package private)  java.util.Hashtable currentData
           
(package private)  com.flexstor.common.data.ejb.disguiserecord.DisguiseAssetRecordData currentOut
           
(package private)  java.util.Hashtable currentOutData
           
(package private)  com.flexstor.common.importprocessor.ImportData impData
           
(package private)  int index
           
(package private)  ScriptService service
           
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Window
 
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
ScriptableFrame(java.util.Hashtable Records, ScriptService svc, java.lang.String scriptName)
           
 
Method Summary
 boolean addChildAsset()
          addChildAsset Creates a new DisguiseAssetRecordData object and adds it to the currentAsset as a child.
 boolean addData(java.lang.String sData)
          Sets the value specified for the Asset field (key) specified, which will later be used to update the ImportData.
 boolean completeUpdate()
          Completes the update process by sending the data for the current Child Asset, and setting things up to send it all back from whence it came.
 boolean deleteCurrentAsset()
           
 boolean deleteCurrentOutAsset()
           
private  boolean getAssetByPath(java.lang.String sName)
           
 java.lang.String[] getCTLOptions()
          getCTLOptions Gets the [options] section of the .ctl file.
 java.lang.String GetFileName()
          GetFileName
 java.lang.String GetNextFile()
          Sets the next Asset in the list to the current Asset, and returns it's filename.
 int GetNumberOfAssets()
          getNumberOfAssets
 java.awt.Dimension getPreferredSize()
          In previous versions a frame was used to display information about a script being run.
 java.lang.String GetServerName()
          Deprecated. Use getValueAsString. DEPRECATED - Use getValueAsString. IE: get Value As String of Frame theFrame using "server"
 int getValueAsInteger(java.lang.String sKey)
          getValueAsInteger
 java.lang.String getValueAsString(java.lang.String sKey)
          GetValueAsString
 void logDebugMessage(java.lang.String text)
          Allows applescripts to add text to the debug log Does not print to console window.
 boolean makeChildCurrent()
          makeChildCurrent After updating ImportData with the currentData, The currentChild Asset (created by calling addChildAsset) is set to be the currentAsset.
 boolean SelectAssetByPath(java.lang.String sName)
          SelectAssetByName Updates ImportData with the current Child Assets Data, then sets the currentAsset to the one specified by the value passed in as sName.
 int SelectNextAsset()
          SelectNextAsset Updates ImportData with the current Child Assets Data, then advances to the next Asset in the ImportData Object
 boolean SetFileName(java.lang.String fileName)
          Deprecated. use addData instead IE: add Data of Frame theFrame using \"filename=aFile.TIF\"");
 boolean SetFileSize(java.lang.String size)
          Deprecated. Use addData instead. IE: addData("filesize=100");
 boolean SetHeight(java.lang.String height)
          Deprecated. Use addData instead. IE: addData("height=100");
 int SetImageType(java.lang.String type)
          Deprecated. Use addData and pass in the role ID of the Role you want the new Child asset to have. add Data of Frame theFrame using \"roleid=3\" (3 is for thumbnail)" );
 boolean SetWidth(java.lang.String width)
          Deprecated. Use addData instead. IE: addData("width=100");
 boolean SetXRes(java.lang.String xres)
          Deprecated. Use addData instead. add Data of Frame theFrame using \"xres=100\"" );
 boolean SetYRes(java.lang.String yres)
          Deprecated. Use addData instead. IE: addData("yres=100");
 void writeToConsole(java.lang.String text)
          Allows applescripts to write text to the output console of the Remote Asset Server also write text to the debug log
 void writeToErrorlog(java.lang.String text)
          Provides FlexError support for Applescripts.
 
Methods inherited from class java.awt.Frame
addNotify, getAccessibleContext, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, paramString, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getGraphicsConfiguration, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, show, toBack, toFront
 
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, getMaximumSize, getMinimumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, 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, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, 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, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

impData

com.flexstor.common.importprocessor.ImportData impData

service

ScriptService service

assetRecords

java.util.Hashtable assetRecords

index

int index

assetKeys

java.util.Vector assetKeys

currentAsset

com.flexstor.common.data.ejb.disguiserecord.DisguiseAssetRecordData currentAsset

currentData

java.util.Hashtable currentData

currentOut

com.flexstor.common.data.ejb.disguiserecord.DisguiseAssetRecordData currentOut

currentOutData

java.util.Hashtable currentOutData
Constructor Detail

ScriptableFrame

public ScriptableFrame(java.util.Hashtable Records,
                       ScriptService svc,
                       java.lang.String scriptName)
Method Detail

GetNumberOfAssets

public int GetNumberOfAssets()
getNumberOfAssets


GetNextFile

public java.lang.String GetNextFile()
Sets the next Asset in the list to the current Asset, and returns it's filename. This can be used as a shortcut for SelectNextAsset(); GetFileName();


SelectNextAsset

public int SelectNextAsset()
SelectNextAsset Updates ImportData with the current Child Assets Data, then advances to the next Asset in the ImportData Object


getAssetByPath

private boolean getAssetByPath(java.lang.String sName)

SelectAssetByPath

public boolean SelectAssetByPath(java.lang.String sName)
SelectAssetByName Updates ImportData with the current Child Assets Data, then sets the currentAsset to the one specified by the value passed in as sName.


getValueAsString

public java.lang.String getValueAsString(java.lang.String sKey)
GetValueAsString


getValueAsInteger

public int getValueAsInteger(java.lang.String sKey)
getValueAsInteger


completeUpdate

public boolean completeUpdate()
Completes the update process by sending the data for the current Child Asset, and setting things up to send it all back from whence it came. This should be used when your service is finished updating the ImportData Object.


getCTLOptions

public java.lang.String[] getCTLOptions()
getCTLOptions Gets the [options] section of the .ctl file.


GetFileName

public java.lang.String GetFileName()
GetFileName


GetServerName

public java.lang.String GetServerName()
Deprecated. Use getValueAsString. DEPRECATED - Use getValueAsString. IE: get Value As String of Frame theFrame using "server"


addChildAsset

public boolean addChildAsset()
addChildAsset Creates a new DisguiseAssetRecordData object and adds it to the currentAsset as a child.


deleteCurrentOutAsset

public boolean deleteCurrentOutAsset()

deleteCurrentAsset

public boolean deleteCurrentAsset()

makeChildCurrent

public boolean makeChildCurrent()
makeChildCurrent After updating ImportData with the currentData, The currentChild Asset (created by calling addChildAsset) is set to be the currentAsset. This is done to create children of children, so addChildAsset should be called after this.


addData

public boolean addData(java.lang.String sData)
Sets the value specified for the Asset field (key) specified, which will later be used to update the ImportData.


SetFileName

public boolean SetFileName(java.lang.String fileName)
Deprecated. use addData instead IE: add Data of Frame theFrame using \"filename=aFile.TIF\"");

Set the filename for the current Child Asset. Note: addChildAsset should be called prior to calling this method, or there will be no Asset to set the filename for.


SetImageType

public int SetImageType(java.lang.String type)
Deprecated. Use addData and pass in the role ID of the Role you want the new Child asset to have. add Data of Frame theFrame using \"roleid=3\" (3 is for thumbnail)" );

SetImageType Will set the AssetType of the current Assets Role to the type specified


SetXRes

public boolean SetXRes(java.lang.String xres)
Deprecated. Use addData instead. add Data of Frame theFrame using \"xres=100\"" );

Sets the XRes value for the current Child Asset


SetYRes

public boolean SetYRes(java.lang.String yres)
Deprecated. Use addData instead. IE: addData("yres=100");

Sets the YRes value for the current Child Asset.


SetWidth

public boolean SetWidth(java.lang.String width)
Deprecated. Use addData instead. IE: addData("width=100");

Sets the Width value for the current Child Asset.


SetHeight

public boolean SetHeight(java.lang.String height)
Deprecated. Use addData instead. IE: addData("height=100");

Sets the Height value for the current Child Asset.


SetFileSize

public boolean SetFileSize(java.lang.String size)
Deprecated. Use addData instead. IE: addData("filesize=100");

Sets the FileSize value for the current Child Asset.


logDebugMessage

public void logDebugMessage(java.lang.String text)
Allows applescripts to add text to the debug log Does not print to console window.


writeToErrorlog

public void writeToErrorlog(java.lang.String text)
Provides FlexError support for Applescripts. writes text to Output console, debug log(indirectly), and to the FlexDBServer error log.


writeToConsole

public void writeToConsole(java.lang.String text)
Allows applescripts to write text to the output console of the Remote Asset Server also write text to the debug log


getPreferredSize

public java.awt.Dimension getPreferredSize()
In previous versions a frame was used to display information about a script being run. This was used to close the window. public void closeWindow() { setVisible(false); Diagnostic.trace(Diagnostic.CAT_SCRIPT_SVC, "Set visible false"); }