public abstract class Conduit extends MainWindow
This is the conduit's MainWindow. Two methods will be called at different times:
Control.TranslucentShape
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
conduitName |
int |
syncTarget
Defines the target platform for synchronization.
|
protected java.lang.String |
targetApplicationId |
protected java.lang.String |
targetAppPath |
static int |
TARGETING_ALL |
static int |
TARGETING_PALMOS |
static int |
TARGETING_WINCE |
firstTimer
_controlEvent, _dragEvent, _focus, _keyEvent, _mouseEvent, _multiEvent, _penEvent, androidBorderThickness, beepIfOut, blocking, borderStyle, cancelPenUp, canDrag, dragThreshold, fadeOtherWindows, fadeValue, firstFocus, flickEnabled, focusOnPenUp, footerColor, footerH, gradientTitleEndColor, gradientTitleStartColor, headerColor, highlighted, highResPrepared, HORIZONTAL_GRADIENT, ignoreEventOfType, keyHook, lastShiftY, lastSwappedContainer, mainSwapContainer, menubar, multiTouching, needsPaint, NO_BORDER, ORIENTATION_INVERTED, ORIENTATION_LANDSCAPE, ORIENTATION_PORTRAIT, popped, RECT_BORDER, repaintOnSwap, robot, ROUND_BORDER, rTitle, sameBackgroundColor, shiftH, shiftY, SIP_BOTTOM, SIP_HIDE, SIP_SHOW, SIP_TOP, TAB_BORDER, TAB_ONLY_BORDER, tempTitle, title, titleAlign, titleColor, titleFont, titleGap, topMost, VERTICAL_GRADIENT, zStack
alwaysEraseBackground, BACKGROUND_CYLINDRIC_SHADED, BACKGROUND_SHADED, BACKGROUND_SHADED_INV, BACKGROUND_SOLID, backgroundStyle, BORDER_LOWERED, BORDER_NONE, BORDER_RAISED, BORDER_ROUNDED, BORDER_SIMPLE, BORDER_TOP, borderColor, borderRadius, children, controlFound, finishedStart, ignoreOnAddAgain, ignoreOnRemove, insets, lastH, lastScreenWidth, lastW, numChildren, started, tabOrder, tail, TRANSITION_TIME
AFTER, alphaValue, appId, appObj, asContainer, asWindow, backColor, BEFORE, BOTTOM, BOTTOM_OF, BRIGHTER_BACKGROUND, callListenersOnAllTargets, CENTER, CENTER_OF, clearValueInt, clearValueStr, DARKER_BACKGROUND, DP, effect, enableUpdateScreen, esce, eventsEnabled, FILL, fillColor, FIT, floating, fm, fmH, focusHandler, focusLess, focusOnPenDown, focusTraversable, font, FONTSIZE, foreColor, height, ignoreInsets, isHighlighting, isTablet, KEEP, keepDisabled, keepEnabled, LEFT, next, nextTabControl, npParts, offscreen, offscreen0, onEventFirst, parent, PARENTSIZE, PARENTSIZEMAX, PARENTSIZEMIN, PREFERRED, prev, RANGE, repositionAllowed, RIGHT, RIGHT_OF, SAME, SCREENSIZE, SCREENSIZEMAX, SCREENSIZEMIN, setFont, setH, setRel, setW, setX, SETX_NOT_SET, setY, tempW, textShadowColor, TOP, translucentShape, transparentBackground, uiAdjustmentsBasedOnFontHeightIsSupported, uiAndroid, UICONST, uiFlat, uiHolo, uiMaterial, uiVista, visible, width, WILL_RESIZE, x, y
Constructor and Description |
---|
Conduit(java.lang.String conduitName,
java.lang.String targetApplicationId,
java.lang.String targetAppPath,
byte style)
Creates a conduit with a title and a border.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doConfig()
Called when the user wants to configure this conduit.
|
protected abstract void |
doSync()
Called when the synchronization is started.
|
void |
initUI()
A commandline parameter must be passed in order to invoke actions on this conduit:
/r{target platform} register conduit. /u{target platform} unregister conduit. /s{target platform} synchronize. /c configure. Where {target platform} may be one of the following: p - targets PalmOS. w - targets WinCE. a - targets all supported platforms. |
static boolean |
isSyncingEnabled()
Returns whether the conduit is enabled or not.
|
static void |
log(java.lang.String text)
When synchronizing Palm OS devices, logs the given text on the HotSync log.
When synchronizing Windows CE devices, the text is logged on the debug console instead. |
void |
onEvent(Event e)
Called to process key, pen, control and other posted events.
|
protected void |
onRegister()
Called when the conduit is registered.
|
protected void |
onUnregister()
Called when the conduit is unregistered.
|
static void |
setConduitRect(int x,
int y,
int w,
int h,
boolean config)
Sets the conduit's position and size when it is opened.
|
static void |
setSyncingEnabled(boolean enable)
Enables or disables the conduit execution.
|
static void |
yield()
This method lets the conduit manager take a breath.
|
_onMinimize, _onRestore, _onTimerTick, addTimer, addTimer, addTimer, addUpdateListener, appEnding, appStarting, exit, getCommandLine, getDefaultFont, getMainWindow, getScreenShot, initFirebaseInstanceIdService, initFirebaseMessagingService, isMainThread, minimize, onExit, onMinimize, onRestore, removeTimer, removeUpdateListener, restore, runOnMainThread, runOnMainThread, setDefaultFont, setRect, setUIStyle
_doPaint, _postEvent, destroyZStack, drawHighlight, getBorderStyle, getClientRect, getClientRect, getDefaultDragThreshold, getFocus, getHighlighted, getPopupCount, getPreferredHeight, getPreferredWidth, getTitleFont, getTopMost, handleFocusChangeKeys, isScreenShifted, isSipShown, isSipShown4D, isTopMost, isVisible, loadBehind, makeUnmovable, onClickedOutside, onPopup, onRobotKey, onUnpop, paintTitle, paintWindowBackground, popup, popupMenuBar, popupNonBlocking, postPopup, postPressedEvent, postUnpop, pumpEvents, removeFocus, repaintActiveWindows, resize, resizeHeight, resizeWidth, screenResized, setBorderStyle, setDeviceTitle, setFocus, setGrabPenEvents, setHighlighted, setMenuBar, setOrientation, setSIP, setTitle, setTitleFont, shiftScreen, swap, swapFocus, unpop, validate
add, add, add, add, add, broadcastEvent, clear, fillBackground, findChild, findNearestChild, findNextFocusControl, getBorderRadius, getChildren, getChildrenCount, getFirstChild, getFocusableControls, getInsets, incLastX, incLastY, isPressed, moveFocusToNextControl, moveFocusToNextEditable, onAddAgain, onColorsChanged, onPaint, onRemove, onSwapFinished, paintChildren, remove, removeAll, setBorderRadius, setEnabled, setFocusTraversable, setHighlighting, setInsets, setPressColor, setPressed, swapToTopmostWindow
_onEvent, addEnabledStateListener, addFocusListener, addFontChangeHandler, addGridListener, addHandler, addHighlightListener, addKeyListener, addListContainerListener, addMouseListener, addMultiTouchListener, addPenListener, addPressListener, addPushNotificationListener, addSizeChangeHandler, addTimer, addTimer, addTimerListener, addValueChangeHandler, addWindowListener, bringToFront, changeHighlighted, contains, drawTranslucentBackground, getAbsoluteRect, getBackColor, getDoEffect, getEffectH, getEffectW, getEffectX, getEffectY, getEventListeners, getFont, getForeColor, getGap, getGraphics, getHeight, getNext, getParent, getParentWindow, getPos, getPressedEvent, getPrev, getRect, getSize, getTextShadowColor, getWidth, getX, getX2, getY, getY2, hadParentScrolled, handleGeographicalFocusChangeKeys, hasFocus, internalSetEnabled, intXYWH, isActionEvent, isChildOf, isDisplayed, isEnabled, isFloating, isInsideOrNear, isObscured, isVisibleAndInside, onBoundsChanged, onFontChanged, onWindowPaintFinished, post, postEvent, releaseScreenShot, removeEnabledStateListener, removeFocusListener, removeGridListener, removeHandler, removeHighlightListener, removeKeyListener, removeListContainerListener, removeMouseListener, removeMultiTouchListener, removePenListener, removePressListener, removePushNotificationListener, removeTimerListener, removeWindowListener, repaint, repaintNow, reposition, reposition, repositionChildren, requestFocus, resetSetPositions, resetStyle, safeRepaintNow, safeUpdateScreen, sendToBack, setBackColor, setBackForeColors, setDoEffect, setFloating, setFocusLess, setFont, setForeColor, setNinePatch, setNinePatch, setRect, setRect, setRect, setSet, setTextShadowColor, setTranslucent, setVisible, showTip, takeInitialScreenShot, takeScreenShot, translateFromOrigin, uiStyleChanged, updateScreen, updateTemporary, willOpenKeyboard
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
_postEvent
public static final int TARGETING_WINCE
public static final int TARGETING_PALMOS
public static final int TARGETING_ALL
public int syncTarget
TARGETING_WINCE
,
TARGETING_PALMOS
,
TARGETING_ALL
protected java.lang.String conduitName
protected java.lang.String targetApplicationId
protected java.lang.String targetAppPath
public Conduit(java.lang.String conduitName, java.lang.String targetApplicationId, java.lang.String targetAppPath, byte style)
public final void initUI()
public void onEvent(Event e)
Control
public static void log(java.lang.String text)
public static void yield()
protected abstract void doSync()
protected abstract void doConfig()
public static void setSyncingEnabled(boolean enable)
Note that disabling a conduit is NOT the same as unregistering.
public static boolean isSyncingEnabled()
public static void setConduitRect(int x, int y, int w, int h, boolean config)
setConduitRect(-2,-2,320,320,false);
x
- Absolute position on screen, or -1 to use default, or -2 to center.y
- Absolute position on screen, or -1 to use default, or -2 to center.w
- The width of the window (usually 240 or 320)h
- The height of the window (usually 320)config
- If true, you are passing the bounds for when the config is being called; if false, is the bounds used when synchronizing.protected void onRegister()
protected void onUnregister()