agentland.info.news.newsWall
Class NewsWallGuiMaker
java.lang.Object
|
+--agentland.gui.GuiMaker
|
+--agentland.info.news.newsWall.NewsWallGuiMaker
- All Implemented Interfaces:
- GuiElement, Serializable
- public class NewsWallGuiMaker
- extends GuiMaker
GUI for NewsWall.
- See Also:
GuiMaker
, Serialized Form
Method Summary |
protected void |
addStory(news.models.Story story)
|
protected void |
addStoryCard(news.models.Story story,
news.views.Card card)
|
protected void |
displayStory(news.models.Story story)
|
Container |
getGui()
Returns a component that is the UI for the newsModel |
void |
init()
Called by the GuiManager when the gui maker is installed at its
"destination" |
protected void |
repaintAllStories()
|
protected void |
storySelected(news.models.Story story)
|
void |
tell(Secret s)
Notifications come through here |
protected void |
updateDisplay()
Refreshes the display. |
protected void |
updateNewsDisplay()
Updates the story list and then, if necessary, updates the
display. |
protected void |
updateNewsDisplay(Collection stories)
Given a list of stories, updates the display. |
Methods inherited from class agentland.gui.GuiMaker |
addSpy, equals, getContainer, getFamily, getFamilyObject, getName, getParent, hashCode, hideMe, installed, killMe, log, log, log, log, notify, reliesOn, reliesOn, setFamily, setFamilyClass, setHost, setName, setParent, showMe, toString, visible |
newsView
protected news.views.NewsViewWithTime newsView
newsScroll
protected JScrollPane newsScroll
curStories
protected Vector curStories
latestDisplayedNewsTime
protected GregorianCalendar latestDisplayedNewsTime
repaintRequired
protected boolean repaintRequired
SERVER_URL
protected String SERVER_URL
newsModel
protected NewsModel newsModel
newsGuiAgent
protected NewsWallGui newsGuiAgent
newsModelID
protected AgentID newsModelID
NewsWallGuiMaker
public NewsWallGuiMaker(String name,
AgentID parent,
AgentID newsModelID)
init
public void init()
- Called by the GuiManager when the gui maker is installed at its
"destination"
- Overrides:
init
in class GuiMaker
tell
public void tell(Secret s)
- Notifications come through here
- Overrides:
tell
in class GuiMaker
- Following copied from class:
agentland.gui.GuiMaker
- Parameters:
secret
- a Secret
value
getGui
public Container getGui()
- Returns a component that is the UI for the newsModel
- Overrides:
getGui
in class GuiMaker
- Following copied from class:
agentland.gui.GuiMaker
- Returns:
- something that can be displayed in a frame
updateNewsDisplay
protected void updateNewsDisplay()
- Updates the story list and then, if necessary, updates the
display.
updateNewsDisplay
protected void updateNewsDisplay(Collection stories)
- Given a list of stories, updates the display.
- Parameters:
stories
- Collection of stories to be presented on the
display
updateDisplay
protected void updateDisplay()
- Refreshes the display.
repaintAllStories
protected void repaintAllStories()
addStory
protected void addStory(news.models.Story story)
displayStory
protected void displayStory(news.models.Story story)
addStoryCard
protected void addStoryCard(news.models.Story story,
news.views.Card card)
storySelected
protected void storySelected(news.models.Story story)