input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public void set disp mode int disp mode this disp mode disp mode
|
sets the display mode for this instance
|
private int get tab height int tab content height height tab image height tab content vpadding if header img null tab content height header img get height return tab content height
|
returns the height of the tabs relative to the views and tabs size
|
public wfont get command font return fnt cmds
|
retrieves the command bar font
|
public int get cmd panel docking return cmd panel docking
|
determines where the command panel is aligned to when opened
|
public void set cmd panel docking int dock cmd panel docking dock
|
determines where the command panel is aligned to when opened
|
public int calc half distance int end position int current position int dist end position current position if dist 0 we are scrolling down therefore components y or we are moving left therefore components x if dist 4 return dist 1 else if dist 4 return dist 1 return dist
|
simple algorithm for taking a displacement and reducing it 1 2
|
public string file to string string url system out println utils file to string trying to load url input stream is misc util class get resource as stream url try string buffer sb new string buffer int chr read until the end of the stream while chr is read 1 if chr 153 chr 0x2122 sb append char chr is null string str sb to string str replace char 174 char 0x00 ae return sb to string catch exception e system out println utils file to string e to string return null
|
method used to read a file and return the file as a string
|
protected void set widget type type constants widget type textbox
|
set the type of widget to widget type button
|
public void draw clip image graphics g int x int y image img int offset x int offset y int width int height g set clip x y width height g draw image img x offset x y offset y constants gfx align top left g set clip 1 1 constants misc screen width 2 constants misc screen height 2
|
this draws and clips an image
|
public boolean exists string name if name null return false input stream in name get class get resource as stream name return in null
|
returns true if the resource referenced by the provided
|
public image get image string name image img logging get instance trace logging log level debug misc util get image name img image cache get name system out println cache get img if img null try img image create image name logging get instance trace logging log level debug misc util get image cache put img cache put name img if img null throw new runtime exception can t find image name catch ioexception e e print stack trace return null return img
|
get the image resource referenced by the provided resource name
|
private void reset widget positions system out println reset widget positions int len widgets length 1 for int i len i 0 i iwidget widget widgets i if widget null continue widget set x org positions i
|
set the widgets positions to their original positions using their original values
|
public boolean handle key released int action int key code key held false return true
|
turns off press for number behavior if user was holding
|
public boolean is fully expanded return height current height
|
returns true if the widget container is fully expanded
|
private void abs cycle todo some work needs to be done here to handle view transitions etc if get previous view null get previous view is visible get previous view cycle if get current view null get current view is visible get current view cycle if has dialog get dialog is visible get dialog cycle cycle
|
abstract cycle method to handle view transitions etc
|
public void set alignment int alignment horizontal alignment alignment layout constants layout aligned reinit size and widget positions
|
set the widget alignment also sets the layout type to layout aligned
|
public int max layers return 1
|
only used by widgets that need more than one layer to render
|
public void init default font wfont default font default font default font
|
set the default font should be called from the init fonts method
|
public void draw string with df graphics g string txt int x int y if default font null default font draw string g txt x y
|
draw with the default font
|
protected void paint border graphics g int x int y int width int height int colour g set color colour g draw rect x y width 1 height 1 paint shadow g x y width height
|
repaint the border if any for this instance
|
protected void paint shadow graphics g int x int y int width int height int hh hh get height g set color constants colour shadow g draw line x 1 y hh x width y hh g draw line x 2 y hh 1 x width 1 y hh 1 g draw line x width y 1 x width y hh g draw line x width 1 y 2 x width 1 y hh 1
|
repaint the shadow if any for this instance
|
protected void paint low border graphics g paint low border g x y width height constants colour black
|
paint the bottom and right edge borders if any for this instance
|
protected void paint low border graphics g int xx int yy int ww int hh int colour g set color colour g draw line xx yy xx ww yy g draw line xx yy xx yy hh g set color constants colour shadow g draw line xx 1 yy hh xx ww yy hh g draw line xx ww yy xx ww yy hh
|
paint the bottom and right edge borders if any for this instance
|
private string ivew qremove if iview qis empty return null string key iview q iview qfirst iview qfirst return key
|
pop the first item from the queue
|
private string iview qpeek if iview qis empty return null string key iview q iview qfirst return key
|
peeks at the first item from the queue
|
private void pace maker long curr time sleep if necessary to make a smooth framerate long end time system current time millis curr time if end time 1000 max fps try frames per second application thread sleep 1000 max fps end time catch exception e else try application thread yield catch exception e
|
method used to regulate the speed of the application
|
private void init pre calc var g screen width m g screen width 1 g screen height m g screen height 1
|
method used to set up all of the global helper methods
|
public boolean is visible if viewing state constants viewing state hiding return false else return true
|
determines whether this iview should be rendered or not
|
public log get log if log null log log factory get log get class return log
|
creates log if it doesnt exist yet
|
protected strategy get strategy string number string message int strategy index 1 int possible strategies 0 for int i 0 i strategies length i strategy strategy strategies i if strategy use strategy number message strategy index i possible strategies if possible strategies 1 get log warn invalid possible strategy size possible strategies number message return null return strategies strategy index
|
find first matching strategy
|
public void run while running try connection connection smpp service get connection if connection null connection is bound enquire link el new enquire link log debug requesting enquiry link pinging connection send request el counter add el get sequence num thread sleep get interval time catch interrupted exception e ignored catch ioexception e log error io exception while pinging e get message smpp service notify of failure e catch exception e log error exception while sending ping request e get message smpp service notify of failure e log info exiting ping deamon
|
running in a new thread
|
public void response received enquire link resp enquire link resp integer response seq enquire link resp get sequence num counter remove response seq
|
apply received response
|
public collection get children features object object if children features null super get children features object children features add wsdl package e instance get textensible documented any return children features
|
this specifies how to implement
|
public string get text object object return get string ui textensible documented type
|
this returns the label text for the adapted class
|
public void notify changed notification notification update children notification switch notification get feature id textensible documented class case wsdl package textensible documented any fire notify changed new viewer notification notification notification get notifier true false return super notify changed notification
|
this handles model notifications by calling
|
public resource locator get resource locator return bpel4 wsedit plugin instance
|
return the resource locator for this item providers resources
|
public collection get children features object object if children features null super get children features object children features add wsdl package e instance get tdocumentation mixed return children features
|
this specifies how to implement
|
public object get image object object return get resource locator get image full obj16 tdocumentation
|
this returns tdocumentation
|
public string get text object object return get string ui tdocumentation type
|
this returns the label text for the adapted class
|
public void notify changed notification notification update children notification switch notification get feature id tdocumentation class case wsdl package tdocumentation mixed fire notify changed new viewer notification notification notification get notifier true false return super notify changed notification
|
this handles model notifications by calling
|
public list get property descriptors object object if item property descriptors null super get property descriptors object add element property descriptor object add name property descriptor object add type property descriptor object return item property descriptors
|
this returns the property descriptors for the adapted class
|
protected void add element property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui tpart element feature get string ui property descriptor description ui tpart element feature ui tpart type wsdl package e instance get tpart element true item property descriptor generic value image null null
|
this adds a property descriptor for the element feature
|
protected void add name property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui tpart name feature get string ui property descriptor description ui tpart name feature ui tpart type wsdl package e instance get tpart name true item property descriptor generic value image null null
|
this adds a property descriptor for the name feature
|
protected void add type property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui tpart type feature get string ui property descriptor description ui tpart type feature ui tpart type wsdl package e instance get tpart type true item property descriptor generic value image null null
|
this adds a property descriptor for the type feature
|
public object get image object object return get resource locator get image full obj16 tpart
|
this returns tpart
|
public string get text object object string label tpart object get name return label null label length 0 get string ui tpart type get string ui tpart type label
|
this returns the label text for the adapted class
|
public void notify changed notification notification update children notification switch notification get feature id tpart class case wsdl package tpart element case wsdl package tpart name case wsdl package tpart type fire notify changed new viewer notification notification notification get notifier false true return super notify changed notification
|
this handles model notifications by calling
|
public list get property descriptors object object if item property descriptors null super get property descriptors object add required property descriptor object return item property descriptors
|
this returns the property descriptors for the adapted class
|
protected void add name property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui tport type name feature get string ui property descriptor description ui tport type name feature ui tport type type wsdl package e instance get tport type name true item property descriptor generic value image null null
|
this adds a property descriptor for the name feature
|
protected void add required property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui textensibility element required feature get string ui property descriptor description ui textensibility element required feature ui textensibility element type wsdl package e instance get textensibility element required true item property descriptor boolean value image null null
|
this adds a property descriptor for the required feature
|
public collection get children features object object if children features null super get children features object children features add wsdl package e instance get tport type operation return children features
|
this specifies how to implement
|
public object get image object object return get resource locator get image full obj16 tport type
|
this returns tport type
|
public string get text object object textensibility element t extensibility element textensibility element object return get string ui textensibility element type t extensibility element is required
|
this returns the label text for the adapted class
|
public string get text object object string label tport type object get name return label null label length 0 get string ui tport type type get string ui tport type type label
|
this returns the label text for the adapted class
|
public void notify changed notification notification update children notification switch notification get feature id textensibility element class case wsdl package textensibility element required fire notify changed new viewer notification notification notification get notifier false true return super notify changed notification
|
this handles model notifications by calling
|
public void notify changed notification notification update children notification switch notification get feature id tport type class case wsdl package tport type name fire notify changed new viewer notification notification notification get notifier false true return case wsdl package tport type operation fire notify changed new viewer notification notification notification get notifier true false return super notify changed notification
|
this handles model notifications by calling
|
protected void collect new child descriptors collection new child descriptors object object super collect new child descriptors new child descriptors object new child descriptors add create child parameter wsdl package e instance get tport type operation wsdl factory e instance create toperation
|
this adds to the collection of
|
public list get property descriptors object object if item property descriptors null super get property descriptors object add binding property descriptor object add name property descriptor object return item property descriptors
|
this returns the property descriptors for the adapted class
|
protected void add binding property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui tport binding feature get string ui property descriptor description ui tport binding feature ui tport type wsdl package e instance get tport binding true item property descriptor generic value image null null
|
this adds a property descriptor for the binding feature
|
protected void add name property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui tport name feature get string ui property descriptor description ui tport name feature ui tport type wsdl package e instance get tport name true item property descriptor generic value image null null
|
this adds a property descriptor for the name feature
|
public list get property descriptors object object if item property descriptors null super get property descriptors object add name property descriptor object add target namespace property descriptor object return item property descriptors
|
this returns the property descriptors for the adapted class
|
public object get image object object return get resource locator get image full obj16 tport
|
this returns tport
|
protected void add name property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui tdefinitions name feature get string ui property descriptor description ui tdefinitions name feature ui tdefinitions type wsdl package e instance get tdefinitions name true item property descriptor generic value image null null
|
this adds a property descriptor for the name feature
|
public string get text object object string label tport object get name return label null label length 0 get string ui tport type get string ui tport type label
|
this returns the label text for the adapted class
|
public void notify changed notification notification update children notification switch notification get feature id tport class case wsdl package tport binding case wsdl package tport name fire notify changed new viewer notification notification notification get notifier false true return super notify changed notification
|
this handles model notifications by calling
|
protected void add target namespace property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui tdefinitions target namespace feature get string ui property descriptor description ui tdefinitions target namespace feature ui tdefinitions type wsdl package e instance get tdefinitions target namespace true item property descriptor generic value image null null
|
this adds a property descriptor for the target namespace feature
|
public list get property descriptors object object if item property descriptors null super get property descriptors object add name property descriptor object add type property descriptor object return item property descriptors
|
this returns the property descriptors for the adapted class
|
public collection get children features object object if children features null super get children features object children features add wsdl package e instance get tdefinitions any top level optional element return children features
|
this specifies how to implement
|
protected void add name property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui tbinding name feature get string ui property descriptor description ui tbinding name feature ui tbinding type wsdl package e instance get tbinding name true item property descriptor generic value image null null
|
this adds a property descriptor for the name feature
|
public object get image object object return get resource locator get image full obj16 tdefinitions
|
this returns tdefinitions
|
public string get text object object string label tdefinitions object get name return label null label length 0 get string ui tdefinitions type get string ui tdefinitions type label
|
this returns the label text for the adapted class
|
protected void add type property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui tbinding type feature get string ui property descriptor description ui tbinding type feature ui tbinding type wsdl package e instance get tbinding type true item property descriptor generic value image null null
|
this adds a property descriptor for the type feature
|
public list get property descriptors object object if item property descriptors null super get property descriptors object add array type property descriptor object add required property descriptor object return item property descriptors
|
this returns the property descriptors for the adapted class
|
public void notify changed notification notification update children notification switch notification get feature id tdefinitions class case wsdl package tdefinitions name case wsdl package tdefinitions target namespace fire notify changed new viewer notification notification notification get notifier false true return case wsdl package tdefinitions any top level optional element fire notify changed new viewer notification notification notification get notifier true false return super notify changed notification
|
this handles model notifications by calling
|
public collection get children features object object if children features null super get children features object children features add wsdl package e instance get tbinding operation return children features
|
this specifies how to implement
|
protected void add array type property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui document root array type feature get string ui property descriptor description ui document root array type feature ui document root type wsdl package e instance get document root array type true item property descriptor generic value image null null
|
this adds a property descriptor for the array type feature
|
public object get image object object return get resource locator get image full obj16 tbinding
|
this returns tbinding
|
protected void add required property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui document root required feature get string ui property descriptor description ui document root required feature ui document root type wsdl package e instance get document root required true item property descriptor boolean value image null null
|
this adds a property descriptor for the required feature
|
public string get text object object string label tbinding object get name return label null label length 0 get string ui tbinding type get string ui tbinding type label
|
this returns the label text for the adapted class
|
public collection get children features object object if children features null super get children features object children features add wsdl package e instance get document root mixed return children features
|
this specifies how to implement
|
public void notify changed notification notification update children notification switch notification get feature id tbinding class case wsdl package tbinding name case wsdl package tbinding type fire notify changed new viewer notification notification notification get notifier false true return case wsdl package tbinding operation fire notify changed new viewer notification notification notification get notifier true false return super notify changed notification
|
this handles model notifications by calling
|
public object get image object object return get resource locator get image full obj16 document root
|
this returns document root
|
public list get property descriptors object object if item property descriptors null super get property descriptors object add location property descriptor object add namespace property descriptor object return item property descriptors
|
this returns the property descriptors for the adapted class
|
protected void collect new child descriptors collection new child descriptors object object super collect new child descriptors new child descriptors object new child descriptors add create child parameter wsdl package e instance get tbinding operation wsdl factory e instance create tbinding operation
|
this adds to the collection of
|
public string get text object object string label document root object get array type return label null label length 0 get string ui document root type get string ui document root type label
|
this returns the label text for the adapted class
|
protected void add location property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui timport location feature get string ui property descriptor description ui timport location feature ui timport type wsdl package e instance get timport location true item property descriptor generic value image null null
|
this adds a property descriptor for the location feature
|
public void notify changed notification notification update children notification switch notification get feature id document root class case wsdl package document root array type case wsdl package document root required fire notify changed new viewer notification notification notification get notifier false true return case wsdl package document root mixed fire notify changed new viewer notification notification notification get notifier true false return super notify changed notification
|
this handles model notifications by calling
|
protected void add namespace property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui timport namespace feature get string ui property descriptor description ui timport namespace feature ui timport type wsdl package e instance get timport namespace true item property descriptor generic value image null null
|
this adds a property descriptor for the namespace feature
|
public object get image object object return get resource locator get image full obj16 timport
|
this returns timport
|
protected void add name property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui tservice name feature get string ui property descriptor description ui tservice name feature ui tservice type wsdl package e instance get tservice name true item property descriptor generic value image null null
|
this adds a property descriptor for the name feature
|
public string get text object object string label timport object get namespace return label null label length 0 get string ui timport type get string ui timport type label
|
this returns the label text for the adapted class
|
public collection get children features object object if children features null super get children features object children features add wsdl package e instance get tservice port return children features
|
this specifies how to implement
|
public void notify changed notification notification update children notification switch notification get feature id timport class case wsdl package timport location case wsdl package timport namespace fire notify changed new viewer notification notification notification get notifier false true return super notify changed notification
|
this handles model notifications by calling
|
public object get image object object return get resource locator get image full obj16 tservice
|
this returns tservice
|
protected void add name property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui tbinding operation fault name feature get string ui property descriptor description ui tbinding operation fault name feature ui tbinding operation fault type wsdl package e instance get tbinding operation fault name true item property descriptor generic value image null null
|
this adds a property descriptor for the name feature
|
public string get text object object string label tservice object get name return label null label length 0 get string ui tservice type get string ui tservice type label
|
this returns the label text for the adapted class
|
public void notify changed notification notification update children notification switch notification get feature id tservice class case wsdl package tservice name fire notify changed new viewer notification notification notification get notifier false true return case wsdl package tservice port fire notify changed new viewer notification notification notification get notifier true false return super notify changed notification
|
this handles model notifications by calling
|
public object get image object object return get resource locator get image full obj16 tbinding operation fault
|
this returns tbinding operation fault
|
protected void collect new child descriptors collection new child descriptors object object super collect new child descriptors new child descriptors object new child descriptors add create child parameter wsdl package e instance get tservice port wsdl factory e instance create tport
|
this adds to the collection of
|
public string get text object object string label tbinding operation fault object get name return label null label length 0 get string ui tbinding operation fault type get string ui tbinding operation fault type label
|
this returns the label text for the adapted class
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.