JArtifex: Short Reference

  • !Program-Arguments!
  • !Common-Group!
  • AudioPanel
  • BasicControl
  • Button
  • ByteArray
  • Checkbox
  • Combo
  • Dialog
  • Document
  • Edit
  • Filetree
  • Graph
  • Html
  • Label
  • Menu
  • Page
  • Paint
  • Panel
  • Password
  • Picture
  • Popup
  • Progress
  • Rmibutton
  • Scrollpane
  • Sendmail
  • Sendmodem
  • Split
  • Spread
  • Text
  • Timer
  • Tree
  • Window
  • /

    Program-Arguments

    [13.06.04 05:30:28] Couldn't redirect STDOUT to this console
    Already connected
    
    [13.06.04 05:30:28] Invoking: tsl.jartifex.JArtifex.printArguments({})
    
    ======================================================================
    == JArtifex, Author: Thomas Schneider, Version: 5.00 (01.05.2004)
    ======================================================================
    Please give at least one argument: the ini-File without 'ini'-extension
    Syntax: tsl.jartifex.JArtifex [-serialize= [options] [program-parameters]
            with option:
                 -debug     prints debuginformation on standard-output
                 -trace     prints callstack with every output
                 -server=   url, specifying the rmi-server for this client
                 -client=   url, specifying this rmi-server-adress
                 -xpos=     main-window x-position
                 -ypos=     main-window y-position
                 -layout=   java-layout like: windows, motif, mac, metal, organic
                            or the full classname (be sure, it's found by classpath)
                 -help=     prints this information
                 -nobeep    no beeps on error-messages
                 -noerror   no general errordialogs will be shown
                 -test      send action-events from all controls and quit
                 (-serialize= load JArtifex from serialized file)
                 -q         quickconnection: don't show db-connection-dialog
                 -xmltags=  prints info about basic controls (e.g.: -xmltags or -xmltags=spread)
            with program-parameters:
                 This are parameters that you can use inside your iniFile.
                 You can embedd them like:  for the first parameter.
    ======================================================================
    

    Common-Group

    [13.06.04 05:30:30] Invoking: tsl.jartifex.JArtifex.printInfo({})
    
    -------------------------------------------------------------------------------
    
    Possible common-group-properties are:
    
    -------------------------------------------------------------------------------
    
    debugmodus : extended console output
    
    growall    : every control grows in x and y direction
    
    noborder   : no default-borders for container-controls (like Panel)
    
    label      : top or left (used for Edit,Combo) (default:left)
    
    lookandfeel: windows,mac,motif,metal (default:metal), or full classname
    
    margin     : distance between controls
    
    posx       : x-position of main-window
    
    posy       : y-position of main-window
    
    sizx       : width of main-window
    
    sizy       : height of main-window
    
    onclose    : nothing,exit (default:nothing)
    
    resizeable : (default:on) off: mainwindow is not resizeable
    
    locale     : country identifier like 'en' or 'de'
    
    driver     : database driver
    
    url        : database url
    
    user       : database user
    
    passwd     : users password
    
    title      : title of this program (default:xml-name)
    
    icon       : gif or jpg icon for this program
    
    extern     : extern controller class
    
    devidesign : to devide inside a property like Spread.columns
    
              possible are all characters and RET,TAB (default:,)
    
    -------------------------------------------------------------------------------
    
    

    AudioPanel

    [13.06.04 05:30:32] Invoking: tsl.jartifex.controls.AudioPanel.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of Panel are not available
    
    ----------------------------------------------------------------------
    
    

    BasicControl

    [13.06.04 05:30:33] Invoking: tsl.jartifex.controls.BasicControl.printInfo({})
    
    -------------------------------------------------------------------------------
    
    Possible main-properties are:
    
    -------------------------------------------------------------------------------
    
    name       : Identifier of this element
    
    hierarchy  : Adds the parent-name (with '.') to the name of this element
    
    title      : Title of this element (Default:)
    
    mnemonic   : Hotkey for swing-component (Default: First character of title)
    
    modelobject: method that returns a model-object from extern
    
    model      : bean-name for the getter/setter-methods of the model-object
    
    modelview  : bean-name for the getter/setter-methods of the view-controls
    
    modelclass : full classname of the transfer-object (model<->view)
    
    cmdtype    : TXT,EXE,SQL,CLS,READ,WRITE,APPEND,EXIT,OPEN,CLOSE,RELOAD,PRINT
    
               : DOFOR,DELETE   (Default:TXT)
    
    command    : how to fill control or what to do on user-interaction
    
    type       : control-dependend (e.g. Edit-> char(100) or char(###))
    
    widthstring: any string, defining the width of the control (like Edit,Button)
    
    xfill      : fill control in horizontal direction (default:on)
    
    xpos       : horizontal grid-position of swing-component
    
    ypos       : vertical grid position of swing-component
    
    width      : (Number) grid-width of swing-component  (Default: 1)
    
    height     : (Number) grid-height of swing-component (Default: 1)
    
    weightx    : (Number) grid-weithx of swing-component
    
    weighty    : (Number) grid-weithy of swing-component
    
    preferredx : pixels of preferred width
    
    preferredy : pixels of preferred height
    
    position   : relativ position to last swing-component: RIGHT,DOWN (Def.: DOWN)
    
    link       : result-elements, separated by ','
    
               : clauses: 'NULL:','NOTNULL:', ':', 'NEWWINDOW'
    
    enabled    : on/off (default:on)
    
    visible    : on/off (default:on)
    
    background : background-color (blue,green,red... or number,number,number) 
    
    foreground : foreground-color (blue,green,red... or number,number,number)
    
    tooltip    : any text to explain control
    
    dblclick   : the name of a control that has to handle the dblclick
    
    focuslost  : the name of a control that has to handle the focuslost-event
    
    focusgained: the name of a control that has to handle the focusgained-event
    
    shortcut   : a character. On pressing this key, the command of this control
    
    popup      : a popupmenu (must be defined inside the group:Menu
    
               : will be started
    
    help       : an Url (like http://www.hallo.de/index.html)
    
               : on pressing F1 this url will be shown!
    
    serialize  : filename of stored file. load control from this file 
    
    -------------------------------------------------------------------------------
    
    Possible bean-properties are:
    
    -------------------------------------------------------------------------------
    
    getEnabled(),       setEnabled(Object) 
    
    getVisible(),       setVisible(Object) 
    
    getBackground(),    setBackground(Object) 
    
    getForeground(),    setForeground(Object) 
    
    getTooltip(),       setTooltip(Object) 
    
    -------------------------------------------------------------------------------
    
    Possible cmdtypes (default is 'txt', commands are given by 'command') are:
    
    -------------------------------------------------------------------------------
    
    txt        : returns the interpreted 'command'-string
    
    exe        : executes a shell-command (given by 'command')
    
    cls        : starts a java-method (package+class method parameters (devided by blanks)
    
    sql        : executes an sql-statement
    
    read       : reads a file from 'command' and fills it to 'link'
    
    write      : writes to the file 'command' and gets the content from 'link'
    
    append     : writes (appending) to the file 'command' and gets the content from 'link'
    
    print      : prints the control 'command'
    
    focus      : sets the focus to 'command'
    
    open       : opens a fileselectbox
    
    save       : opens a fileselectbox for saving
    
    show       : shows the window given by 'command'
    
    close      : closes the window 'command' (or if empty, the application)
    
    exit       : exits the java-application
    
    delete     : deletes the control 'command'
    
    reload     : reloads  the application from 'command'.xml
    
    -------------------------------------------------------------------------------
    
    

    Button

    [13.06.04 05:30:38] Invoking: tsl.jartifex.controls.Button.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of Button are:
    
    ----------------------------------------------------------------------
    
    icon       : Icon to show inside Button
    
    verifyinputfocus: if off, no inputverifying on focuslosing(default:on)
    
    alignment  : hor.textposition (left,right,center) (default:left)
    
    vertical   : vert.textposition (top,down,center) (default:center)
    
    ----------------------------------------------------------------------
    
    

    ByteArray

    [13.06.04 05:30:39] Invoking: tsl.jartifex.controls.ByteArray.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of ByteArray are not available
    
    ----------------------------------------------------------------------
    
    

    Checkbox

    [13.06.04 05:30:40] Invoking: tsl.jartifex.controls.Checkbox.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of Checkbox are:
    
    ----------------------------------------------------------------------
    
    alignment  : horizontal position (left,right,center) (default:left)
    
    ----------------------------------------------------------------------
    
    

    Combo

    [13.06.04 05:30:41] Invoking: tsl.jartifex.controls.Combo.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of Combo are:
    
    ----------------------------------------------------------------------
    
    alignment  : horizontal labelposition (left,right,center) (default:left)
    
    editable   : off: combobox is not editable (default:on)
    
    historize  : on: combobox grows with input (default:off)
    
    selection  : content to select
    
    ----------------------------------------------------------------------
    
    Special bean-properties of Combo are:
    
    ----------------------------------------------------------------------
    
    key        : gets the key of the selected element. key/values can be
    
               : created using the '!' (e.g.: 0!Null,1!One)
    
    setSelection(Object) : select the object given by 
    
                           the result-object of an action
    
    ----------------------------------------------------------------------
    
    

    Dialog

    [13.06.04 05:30:42] Invoking: tsl.jartifex.controls.Dialog.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of Dialog (->Window) are:
    
    ----------------------------------------------------------------------
    
    modal      : the behavior of this dialog will be modal (default:off)
    
    resizeable : off: dialog will not be resizeable (default:on)
    
    onclose    : close: dialog will be closed, nothing: nothing to do
    
    defaultbutton : name of the defaultbutton for this dialog
    
    inputfocus : name of the input-control that has the first focus
    
    init       : name of control to activate on becoming visible
    
    ----------------------------------------------------------------------
    
    

    Document

    [13.06.04 05:30:43] Invoking: tsl.jartifex.controls.Document.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of Document are:
    
    ----------------------------------------------------------------------
    
    source     : path to rtf text file
    
    destination: path to destination file
    
    viewer     : path to rtf viewer (if not set, internal viewer will be used
    
    ----------------------------------------------------------------------
    
    

    Edit

    [13.06.04 05:30:44] Invoking: tsl.jartifex.controls.Edit.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of Edit are:
    
    ----------------------------------------------------------------------
    
    type       : char(n), int(n), float(n), date(n) with n= length
    
                 or ##.##.#### with '.' as separator and '#' as number
    
                 or use a regular expression starting with § (e.g.:§[-9]*)
    
    init       : init is the initial string for the mask (e.g.: __:__
    
    min        : if type is 'int' (e.g.: 0) or 'float' (e.g.: 0.0)
    
    max        : if type is 'int' (e.g.: 99) or 'float' (e.g.: 99.0)
    
    errortext  : this text will be shown on failure in input
    
    focusnext  : if maximum number of chars inputted set the focus to the
    
               : next component (default:off)
    
    alignment  : hor.textposition (left,right,center) (default:left)
    
    titlealignment  : hor.labelposition (left,right,center) (default:left)
    
    ----------------------------------------------------------------------
    
    Special contents (e.g. [myEdit(dbdate)]) of Edit are :
    
    ----------------------------------------------------------------------
    
    dbdate     : returns the content as a datebase date string ('2002-01-01')
    
    ----------------------------------------------------------------------
    
    

    Filetree

    [13.06.04 05:30:46] Invoking: tsl.jartifex.controls.Filetree.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of Filetree (->Tree) are not available
    
    ----------------------------------------------------------------------
    
    

    Graph

    [13.06.04 05:30:47] Invoking: tsl.jartifex.controls.Graph.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of Graph are:
    
    ----------------------------------------------------------------------
    
    graphtype  : line, column or beam
    
    ----------------------------------------------------------------------
    
    

    Html

    [13.06.04 05:30:48] Invoking: tsl.jartifex.controls.Html.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of Html are not available
    
    ----------------------------------------------------------------------
    
    

    Label

    [13.06.04 05:30:49] Invoking: tsl.jartifex.controls.Label.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of Label are:
    
    ----------------------------------------------------------------------
    
    alignment  : horizontal textposition (left,right,center) (default:left)
    
    statusbar  : shows info text (default: off)
    
    ----------------------------------------------------------------------
    
    

    Menu

    [13.06.04 05:30:50] Invoking: tsl.jartifex.controls.Menu.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of Menu are not available
    
    ----------------------------------------------------------------------
    
    

    Page

    [13.06.04 05:30:51] Invoking: tsl.jartifex.controls.Page.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of Page are:
    
    ----------------------------------------------------------------------
    
    The fillIt() and getContent() use the Panel-Selection
    
    placement:  (top(default),left,right,bottom) placement of tabbedpane
    
    ----------------------------------------------------------------------
    
    setEnabled(basiccontrol, true or false)
    
    setSelectedPanel(basiccontrol)
    
    ----------------------------------------------------------------------
    
    

    Paint

    [13.06.04 05:30:52] Invoking: tsl.jartifex.controls.Paint.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of Paint (->Panel) are:
    
    ----------------------------------------------------------------------
    
    paint_NAME : 
    
                 e.g.: paint_Rect = drawRect(0,0,100,100)
    
    Graphics2D-methods:
    
                 drawLine(x1,y1,x2,y2)
    
                 drawRect(x1,y1,x2,y2)
    
                 fillRect(x1,y1,x2,y2)
    
                 draw3DRect(x,y,width,height,raised)
    
                 fill3DRect(x,y,width,height,raised)
    
                 drawOval(x,y,width,height)
    
                 fillOval(x,y,width,height)
    
                 drawArc(x,y,width,height,startAngle, arcAngle)
    
                 fillArc(x,y,width,height,startAngle, arcAngle)
    
                 drawString(text,x,y)
    
    ----------------------------------------------------------------------
    
    

    Panel

    [13.06.04 05:30:53] Invoking: tsl.jartifex.controls.Panel.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of Panel are not available
    
    ----------------------------------------------------------------------
    
    

    Password

    [13.06.04 05:30:54] Invoking: tsl.jartifex.controls.Password.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of Password (->Edit) are:
    
    ----------------------------------------------------------------------
    
    type       : mask(****) for a length of 4
    
                 or ##.##.#### with '.' as separator and '#' as number
    
    ----------------------------------------------------------------------
    
    

    Picture

    [13.06.04 05:30:55] Invoking: tsl.jartifex.controls.Picture.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of Picture are not available
    
    ----------------------------------------------------------------------
    
    

    Popup

    [13.06.04 05:30:56] Invoking: tsl.jartifex.controls.Popup.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of Popup are not available
    
    ----------------------------------------------------------------------
    
    

    Progress

    [13.06.04 05:30:57] Invoking: tsl.jartifex.controls.Progress.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of Progress are not available
    
    ----------------------------------------------------------------------
    
    

    Rmibutton

    [13.06.04 05:30:58] Invoking: tsl.jartifex.controls.Rmibutton.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of Rmibutton (->Button) are:
    
    ----------------------------------------------------------------------
    
    client   : name of this instance (to be used as server)
    
    server   : url to rmiserver (default: itself)
    
    rmicmdtype:  requestdialog, serverparameter (default: clientparameter)
    
    ----------------------------------------------------------------------
    
    

    Scrollpane

    [13.06.04 05:30:59] Invoking: tsl.jartifex.controls.Scrollpane.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of Scrollpane are:
    
    ----------------------------------------------------------------------
    
    

    Sendmail

    [13.06.04 05:31:00] Invoking: tsl.jartifex.controls.Sendmail.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of Sendmail (->Button) are:
    
    ----------------------------------------------------------------------
    
    smtpserver: smtp server url
    
    from      : email of sender
    
    to        : email of receiver
    
    subject   : email title
    
    body      : email text
    
    ----------------------------------------------------------------------
    
    

    Sendmodem

    [13.06.04 05:31:01] Invoking: tsl.jartifex.controls.Sendmodem.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of Button are:
    
    ----------------------------------------------------------------------
    
    icon       : Icon to show inside Button
    
    verifyinputfocus: if off, no inputverifying on focuslosing(default:on)
    
    alignment  : hor.textposition (left,right,center) (default:left)
    
    vertical   : vert.textposition (top,down,center) (default:center)
    
    ----------------------------------------------------------------------
    
    

    Split

    [13.06.04 05:31:02] Invoking: tsl.jartifex.controls.Split.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of Split are:
    
    ----------------------------------------------------------------------
    
    alignment  : horizontal=hor, vertical=ver (default=hor)
    
               : (use weightx for the childs to set the size!)
    
    ----------------------------------------------------------------------
    
    

    Spread

    [13.06.04 05:31:03] Invoking: tsl.jartifex.controls.Spread.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of Spread are:
    
    ----------------------------------------------------------------------
    
    editable   : 'on' -> each table-cell is editable
    
               : e.g. row=2 -> the second row is editable
    
               : e.g. col=2 -> the second column is editable
    
    columns    : header-column-names (devided by ','
    
    colorleft  : sets the background-color of the left-most column
    
    colorright : sets the background-color of the right-most column
    
    colortop   : sets the background-color of the top row
    
    colorbottom: sets the background-color of the bottom row
    
    coltypes   : sets the column-types (masks like ##.##.####) devided
    
    colinits   : defines the initial strings  for the coltype-masks
    
               : by ',' or control-references like '@myCombobox'
    
    fitcolumn  : columnoptimizing: number of column owning the restwidth
    
    autoresize : on: on resize, all columns will be resized (default:on)
    
    rowheight  : rowheight for all rows in pixel
    
    dbtable    : database-table to use for rowinsertupdate
    
    dbmapcols  : (e.g. 0,1,3) map the cols to the sort of columns in the dbtable
    
    dbsinglemode: on: start insertupdate on each row (default:off)
    
    dbinsertupdate: 'on' rowselection start sql-insertupdate on dbtable
    
    rowchangedaction: name of Button or MenuItem to start on rowselchange
    
    calc_row_col: [row1,col1]+[row2,col2]+[row3,col3]
    
    sumrow     : adds a row with the sums of the columns (default:off)
    
    ----------------------------------------------------------------------
    
    Cell-specific properties (like calc_0_x is calc row=0 and all columns):
    
    ----------------------------------------------------------------------
    
    calc_row_col: [row1,col1]+[row2,col2]+[row3,col3]
    
    edit_row_col: 'on' or 'off'
    
    ----------------------------------------------------------------------
    
    Special contents (e.g. [mySpread(row)]) of Spread are :
    
    ----------------------------------------------------------------------
    
    data       : returns the hole data as a TableVector
    
    header     : returns the header (all columnsnames) of the table
    
    selectedrow: returns the selected row of the table
    
    selectedcol: returns the selected column of the table
    
    oldrowvalues: returns the backup of the current row
    
    row=       : returns the content of the given row
    
    col=       : returns the content of the given (by index or name) column
    
    sumrow=    : returns the sum of the given row
    
    sumcol=    : returns the sum of the given column
    
    ----------------------------------------------------------------------
    
    Special extern commandtypes of Spread are:
    
    ----------------------------------------------------------------------
    
    addrow     : add new row to the end of this spread
    
    updaterow  : update the selected row (colupdates)
    
    deleterow  : delete the selected row of this spread
    
    copyrow    : copy the selected row of this spread and append it to the end
    
    dofor      : start action for every row of this spread
    
               : command: spread-name, link: button, doing something
    
    doforselected: the same as dofor, but only for the selected cells
    
    -------------------------------------------------------------------------------
    
    Possible bean-properties are:
    
    -------------------------------------------------------------------------------
    
    setSelection(Object) 
    
    -------------------------------------------------------------------------------
    
    

    Text

    [13.06.04 05:31:07] Invoking: tsl.jartifex.controls.Text.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of Text are:
    
    ----------------------------------------------------------------------
    
    standard   : 'on' -> this pane will show the standard-outputstream
    
    style      : filename to read styles from (e.g.: 'samples/sql.style')
    
    ----------------------------------------------------------------------
    
    

    Timer

    [13.06.04 05:31:08] Invoking: tsl.jartifex.controls.Timer.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of Button are:
    
    ----------------------------------------------------------------------
    
    icon       : Icon to show inside Button
    
    verifyinputfocus: if off, no inputverifying on focuslosing(default:on)
    
    alignment  : hor.textposition (left,right,center) (default:left)
    
    vertical   : vert.textposition (top,down,center) (default:center)
    
    ----------------------------------------------------------------------
    
    ----------------------------------------------------------------------
    
    Special properties of Timer are:
    
    ----------------------------------------------------------------------
    
    timer      : number in seconds -> action will be repeated
    
    start      : timestamp where to start the given action
    
                 or number in seconds (to start after)
    
    stop       : timestamp where to stop the timer (default:start)
    
                 or number in seconds (to stop after start)
    
    ----------------------------------------------------------------------
    
    

    Tree

    [13.06.04 05:31:10] Invoking: tsl.jartifex.controls.Tree.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of Tree are not available
    
    root       : name of root-element in tree
    
    ----------------------------------------------------------------------
    
    

    Window

    [13.06.04 05:31:11] Invoking: tsl.jartifex.controls.Window.printInfo({})
    
    ----------------------------------------------------------------------
    
    Special properties of Window are:
    
    ----------------------------------------------------------------------
    
    xpos       : absolut x-position of this dialog (default:center)
    
    ypos       : absolut y-position of this dialog (default:center)
    
    width      : x-size of this dialog (default:640)
    
    height     : y-size of this dialog (default:320)
    
    ----------------------------------------------------------------------
    
    
    1