|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Panel
|
+--java.applet.Applet
|
+--DE.purple_sunshine.bigbro.ParameterApplet
|
+--DE.purple_sunshine.bigbro.CountdownApplet
An Applet that shows the current date and time and a countdown to a
specified date. The different views on the time fade in and out and move
on random paths through the applet.
By clicking on the Applet, the animation can be switched off and the date
and remaining days will be shown instead.
Documentation on how to use that applet in a website is
available here.
CountdownCanvas,
CountdownAnimator,
CountdownDigits, Serialized Form| Field Summary | |
static int |
DAYS
|
static int[] |
DAYS_IN_MONTH
|
static int |
HOURS
|
static int |
MINUTES
|
static int |
MS
|
static int |
SECONDS
|
| Fields inherited from class DE.purple_sunshine.bigbro.ParameterApplet |
runsInMac, runsInMacNetscape, VERBOSITY |
| 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 | |
CountdownApplet()
|
|
| Method Summary | |
java.lang.String |
currentDateString()
|
java.lang.String |
currentTimeString()
|
java.lang.String |
currentWeekdayString()
|
java.lang.String |
daysIntoString()
|
void |
destroy()
Stops the animation. |
java.lang.String |
getAppletInfo()
Shows information about this applet. |
java.lang.String[][] |
getParameterInfo()
Shows which parameters are allowed. |
void |
init()
Initializes the Applet. |
java.lang.String |
remainingDateString()
|
java.lang.String |
remainingDaysString()
|
java.lang.String |
remainingHoursString()
|
java.lang.String |
remainingMinutesString()
|
java.lang.String |
remainingMSString()
|
java.lang.String |
remainingSecondsString()
|
void |
run()
This Thread tries to load the time from the server. |
void |
start()
Starts the animation. |
void |
stop()
Stops the animation. |
void |
tick()
|
| Methods inherited from class DE.purple_sunshine.bigbro.ParameterApplet |
offButtonURL, onButtonURL, runsInMac, runsInMacNetscape |
| Methods inherited from class java.applet.Applet |
getAccessibleContext, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus |
| Methods inherited from class java.awt.Panel |
addNotify |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, update, validate |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int DAYS
public static final int HOURS
public static final int MINUTES
public static final int SECONDS
public static final int MS
public static final int[] DAYS_IN_MONTH
| Constructor Detail |
public CountdownApplet()
| Method Detail |
public java.lang.String currentDateString()
public java.lang.String currentTimeString()
public java.lang.String currentWeekdayString()
public java.lang.String remainingDaysString()
public java.lang.String daysIntoString()
public java.lang.String remainingHoursString()
public java.lang.String remainingMinutesString()
public java.lang.String remainingSecondsString()
public java.lang.String remainingMSString()
public java.lang.String remainingDateString()
public void init()
init in class ParameterAppletpublic void run()
timefile.run in interface java.lang.Runnablepublic void tick()
public void start()
start in class java.applet.Appletpublic void stop()
stop in class java.applet.Appletpublic void destroy()
stop() and calls to
destroy() method are simply forwarded to stop().destroy in class java.applet.Appletpublic java.lang.String getAppletInfo()
getAppletInfo in class ParameterAppletComponent.getName()public java.lang.String[][] getParameterInfo()
getParameterInfo in class ParameterApplet
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||