|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsiuying.gm.app.gmailer4j.controller.GMMainFrameController
public class GMMainFrameController
Control the main frame of gmailer
| Field Summary | |
|---|---|
static int |
LAYOUT_HORIZONTAL
|
static int |
LAYOUT_VERTICAL
|
| Constructor Summary | |
|---|---|
GMMainFrameController()
|
|
| Method Summary | |
|---|---|
void |
addActionListener(java.awt.event.ActionListener listener)
|
javax.swing.JFrame |
addConversationSubFrame(GMConversation conv)
|
void |
addMouseListener(java.awt.event.MouseListener listener)
|
void |
dispose()
|
void |
expandTree()
Expand the tree in the frame |
bsh.util.JConsole |
getConsole()
|
javax.swing.JFrame |
getConversationSubFrame(GMConversation conv)
|
javax.swing.JFrame |
getFrame()
get main frame |
int |
getLayout()
get current display layout |
java.lang.String |
getMessages()
|
java.lang.String |
getSearchString()
|
javax.swing.JFrame[] |
getSubFrames()
return list of subframes |
ThreadsTableModel |
getThreadsTableModel()
|
boolean |
isConversationSubFrameOpened(GMConversation conv)
check if a conversation sub frame is opened firstly it check if the Map contains the key then it iterate through the key set, and check for each conversation |
boolean |
isShowContent()
|
void |
removeConversationSubFrame(GMConversation conv)
|
void |
resetDivider()
If there exist a divider location stored in preference, it reset divider to that locations, otherwise load defaults |
void |
setBottomPanel(javax.swing.JPanel content)
|
void |
setLayout(int layout)
set current display layout to specified one |
void |
setLeftPanel(javax.swing.JComponent content)
|
void |
setLogonStatus(int status)
|
void |
setMessages(java.lang.String shortMsg,
java.lang.String longMsg)
Set the message of status bar and the progress bar shortMsg is used to update progress bar longMsg is used to update status bar if any of them is null, that section is not updated |
void |
setRightPanel(javax.swing.JComponent content)
|
void |
setSearchEnabled(boolean status)
|
void |
setSearchString(java.lang.String search_string)
|
void |
setSelectedMailboxButton(int idx)
|
void |
setShowContent(boolean show)
|
void |
setTableModel(ThreadsTableModel model)
Set the TableModel in the frame to that specified |
void |
setTreeModel(javax.swing.tree.TreeModel model)
Set the TreeModel in the frame to that specified |
void |
show()
|
void |
showConsole()
|
void |
updateComponentTreeUI()
|
protected void |
updateLayout()
update the layout of the frame |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int LAYOUT_HORIZONTAL
public static int LAYOUT_VERTICAL
| Constructor Detail |
|---|
public GMMainFrameController()
| Method Detail |
|---|
public void dispose()
public void setSearchEnabled(boolean status)
public java.lang.String getSearchString()
public void setSearchString(java.lang.String search_string)
public void setSelectedMailboxButton(int idx)
public void show()
public void showConsole()
public bsh.util.JConsole getConsole()
public void addActionListener(java.awt.event.ActionListener listener)
public void addMouseListener(java.awt.event.MouseListener listener)
public void resetDivider()
public void setTableModel(ThreadsTableModel model)
model - TableModelpublic ThreadsTableModel getThreadsTableModel()
public void setTreeModel(javax.swing.tree.TreeModel model)
model - TreeModelpublic void expandTree()
public void setBottomPanel(javax.swing.JPanel content)
public void setLeftPanel(javax.swing.JComponent content)
public void setRightPanel(javax.swing.JComponent content)
public int getLayout()
public javax.swing.JFrame getFrame()
public void updateComponentTreeUI()
public void setLayout(int layout)
public boolean isShowContent()
public void setShowContent(boolean show)
protected void updateLayout()
Utils.executeTask(Runnable command)public void setLogonStatus(int status)
public void setMessages(java.lang.String shortMsg,
java.lang.String longMsg)
shortMsg - StringlongMsg - Stringpublic java.lang.String getMessages()
public boolean isConversationSubFrameOpened(GMConversation conv)
public javax.swing.JFrame addConversationSubFrame(GMConversation conv)
public void removeConversationSubFrame(GMConversation conv)
public javax.swing.JFrame getConversationSubFrame(GMConversation conv)
public javax.swing.JFrame[] getSubFrames()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||