|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
base.PoddyFrame
public class PoddyFrame
This is the base class for the main window of the main and setup application. It defines several methods that are used by the main and setup application. So the main implementation of these methods is done within the classes SetupWin and MainWin that inherit from this base class. Resulting from that implementations done here within this base class have to provide a general functionality that is valid for both.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary | |
|---|---|
ResourceBundle |
_m
the main window as created by MainWin or SetupWin, that inherits from PoddyFrame |
static Color |
bgcolor
color for error texts |
BufferedImage |
bgImage
|
ConfigData |
config
handles the external text resources |
CustomPanel |
customPanel
|
int |
customSelected
as long as this variable is true no new key event has to be sent |
static Color |
disabledentry
standard entries color, must be different than disabledentry |
static Color |
errorcolor
service entry, located at bottom of lists |
static Color |
highlight
|
ImageIcon |
iconAlpha
standard background color |
ImageIcon |
iconEmpty
standard background color |
ImageIcon |
iconLR
standard background color |
ImageIcon |
iconNum
standard background color |
static int |
ID_CD_ARTIST_ALBUM_CANCEL_OPERATION
|
static int |
ID_CD_ARTIST_ALBUM_DELETE
|
static int |
ID_CD_ARTIST_ALBUM_EDIT
|
static int |
ID_CD_ARTIST_ALBUM_MOVE_TRACKS
|
static int |
ID_CD_ARTIST_ALBUM_MOVE_TRACKS_HERE
|
static int |
ID_CD_ARTIST_ALBUM_PLAY
|
static int |
ID_CD_ARTIST_ALBUM_SHUFFLE
|
static int |
ID_CD_ARTIST_ALBUM_TO_USB
|
static int |
ID_CD_ARTIST_ALBUM_TRACK
|
static int |
ID_TOP_CD
|
static int |
ID_TOP_MOVIES
|
static int |
ID_TOP_POWEROFF
|
static int |
ID_TOP_SERIES
|
static int |
ID_TOP_VCR
|
static int |
ID_TOP_VIDEOS
|
ImageUtils |
iu
|
base.PoddyFrame.ASymKey |
keyEventHandler
this object contains the data out of the configuration file |
long |
lastKeyPress
|
static PoddyFrame |
MyWin
|
long |
nextPoddydSyncTime
|
boolean |
processingKeyEvent
|
static Color |
serviceentry
color for a disabled entry, must be different than stdentry |
SQLLocalAccess |
SQL
|
StationsList |
stationsList
holds a custom panel that is displayed temporarily |
static Color |
stdentry
top managing entries color |
SystemAccess |
sysAccess
stores the last time a key event was received |
static Color |
topentry
color for highlighting entries |
static int |
USEFLAG_ALPHA
|
static int |
USEFLAG_DOWN
|
static int |
USEFLAG_LEFT
|
static int |
USEFLAG_NUM
|
static int |
USEFLAG_RETURN
|
static int |
USEFLAG_RIGHT
|
static int |
USEFLAG_UP
|
BufferedImage |
useImage
|
| Fields inherited from class javax.swing.JFrame |
|---|
EXIT_ON_CLOSE |
| 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.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
PoddyFrame()
The standard constructor for the applications main window. |
|
| Method Summary | |
|---|---|
void |
deleteCDFromDB(int cdidx)
This method applies to the local CD database, it deletes a track from the SQL database. |
void |
doLocalSQLOperation(String query)
|
DefaultListModel |
doLocalSQLQuery(int table,
String query)
|
boolean |
fetchGlobalCDInfo(CDInfo info)
|
int |
getCDDBIdx(String artist,
String album)
|
int |
getDVDDBIdx(long crcid)
|
String |
getLCDText(int num)
|
String |
getPwdHash()
|
void |
handleDownCmd()
Method for handling the down-input from keyboard/remote control |
void |
handleKey(int num)
Whenever the user enters a number (using keyboard or remote control) that number is handed over to this method for further processing |
void |
handleLeftCmd()
Method for handling the left-input from keyboard/remote control |
void |
handleMenuCmd()
Method for handling the menu-input from keyboard/remote control |
void |
handlePlayCmd()
Method for handling the play-input from keyboard/remote control |
void |
handleRightCmd()
Method for handling the right-input from keyboard/remote control |
void |
handleSetCmd()
Method for handling the set-input from keyboard/remote control |
void |
handleStopCmd()
Method for handling the stop-input from keyboard/remote control |
void |
handleUpCmd()
Method for handling the up-input from keyboard/remote control |
void |
initUI()
|
void |
saveRecording(RecordInfo info)
|
void |
saveStations(StationsList list)
|
void |
scrollToObjectASync(JComponent component)
|
void |
setCDToDB(String artist,
String album,
String genre,
String cat,
int year,
int tracks)
|
void |
setCustomPanel(CustomPanel panel)
When an object of type CustomPanel is created and has to be displayed instead of the standard view this method has to be used. |
void |
setDVDToDB(DVDInfo dvdInfo)
|
void |
setLCDErrorText(String text)
This method overwrites the text currently displayed at an (optionally) connected display to display an important message instead of it. |
void |
setLCDMessageText(String text)
This method overwrites the text currently displayed at an (optionally) connected display to display an important message instead of it. |
void |
setLCDText(String text1,
String text2)
This method directly accesses the LCDController and lets it show a new text on the (optionally) connected display |
void |
setMenu(int menuID,
int stack)
|
void |
setPlayInfo(CDInfo cdInfo,
TrackInfo trackInfo)
|
void |
setStationsList(StationsList newList)
|
void |
setTopPanelText(String text)
The main title bar of the application diusplays useful information about what is managed/done by the application at the moment. |
void |
setTopPanelText(String text,
String path)
The main title bar of the application diusplays useful information about what is managed/done by the application at the moment. |
void |
setTrackToDB(int idx,
String trackname)
This method applies to the local CD database, it stores a track |
void |
storeGlobalCDInfo(CDInfo info)
|
void |
turnOffBottomPanel()
|
void |
updateCDDBs(String artist,
String album,
String track)
|
void |
updateDVDDB(DVDInfo dvdInfo)
|
| Methods inherited from class javax.swing.JFrame |
|---|
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, update |
| Methods inherited from class java.awt.Frame |
|---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Field Detail |
|---|
public static final int USEFLAG_UP
public static final int USEFLAG_DOWN
public static final int USEFLAG_LEFT
public static final int USEFLAG_RIGHT
public static final int USEFLAG_RETURN
public static final int USEFLAG_ALPHA
public static final int USEFLAG_NUM
public static final int ID_TOP_SERIES
public static final int ID_TOP_MOVIES
public static final int ID_TOP_CD
public static final int ID_TOP_VIDEOS
public static final int ID_TOP_VCR
public static final int ID_TOP_POWEROFF
public static final int ID_CD_ARTIST_ALBUM_SHUFFLE
public static final int ID_CD_ARTIST_ALBUM_PLAY
public static final int ID_CD_ARTIST_ALBUM_TRACK
public static final int ID_CD_ARTIST_ALBUM_MOVE_TRACKS
public static final int ID_CD_ARTIST_ALBUM_DELETE
public static final int ID_CD_ARTIST_ALBUM_MOVE_TRACKS_HERE
public static final int ID_CD_ARTIST_ALBUM_CANCEL_OPERATION
public static final int ID_CD_ARTIST_ALBUM_EDIT
public static final int ID_CD_ARTIST_ALBUM_TO_USB
public static PoddyFrame MyWin
public ResourceBundle _m
public ConfigData config
public base.PoddyFrame.ASymKey keyEventHandler
public long lastKeyPress
public SystemAccess sysAccess
public boolean processingKeyEvent
public int customSelected
public CustomPanel customPanel
public StationsList stationsList
public BufferedImage useImage
public BufferedImage bgImage
public ImageUtils iu
public static final Color highlight
public static final Color topentry
public static final Color stdentry
public static final Color disabledentry
public static final Color serviceentry
public static final Color errorcolor
public static final Color bgcolor
public ImageIcon iconAlpha
public ImageIcon iconNum
public ImageIcon iconLR
public ImageIcon iconEmpty
public SQLLocalAccess SQL
public long nextPoddydSyncTime
| Constructor Detail |
|---|
public PoddyFrame()
| Method Detail |
|---|
public void handleSetCmd()
public void handleUpCmd()
public void handleDownCmd()
public void handleLeftCmd()
public void handleRightCmd()
public void handleMenuCmd()
public void handlePlayCmd()
public void handleStopCmd()
public void handleKey(int num)
public void setCustomPanel(CustomPanel panel)
panel - the object that inherits from CustomPanel that has to be setpublic void setTopPanelText(String text)
text - the new text that has to bne displayed within the top bar
public void setTopPanelText(String text,
String path)
text - the new text that has to bne displayed within the top barpublic void storeGlobalCDInfo(CDInfo info)
public boolean fetchGlobalCDInfo(CDInfo info)
public void updateCDDBs(String artist,
String album,
String track)
public void setTrackToDB(int idx,
String trackname)
public void deleteCDFromDB(int cdidx)
public void setCDToDB(String artist,
String album,
String genre,
String cat,
int year,
int tracks)
public void setDVDToDB(DVDInfo dvdInfo)
public void updateDVDDB(DVDInfo dvdInfo)
public int getCDDBIdx(String artist,
String album)
public int getDVDDBIdx(long crcid)
public void setPlayInfo(CDInfo cdInfo,
TrackInfo trackInfo)
public void initUI()
public void setMenu(int menuID,
int stack)
public void setLCDText(String text1,
String text2)
text1 - the first line of the new text to be settext2 - the second line of the new text to be setpublic String getLCDText(int num)
public void setLCDErrorText(String text)
text - the error text to be displayedpublic void setLCDMessageText(String text)
text - the message to be displayed
public DefaultListModel doLocalSQLQuery(int table,
String query)
public void doLocalSQLOperation(String query)
public void turnOffBottomPanel()
public void setStationsList(StationsList newList)
public void saveStations(StationsList list)
public void saveRecording(RecordInfo info)
public String getPwdHash()
public void scrollToObjectASync(JComponent component)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||