|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.exponto.jstock.Lines
Constructor Summary | |
Lines(TickerID id,
boolean isWeekly)
Creates a new set of Lines |
Method Summary | |
void |
addLine(PersistentLine pL)
|
void |
changeCurrentLine(int i)
Sets the currentPosition to currentPosition + i. |
void |
deleteActiveSelection()
Deletes the line that is active |
PersistentLine |
getActive()
Gets the currently active line. |
TickerID |
getTickerId()
Get the TickerID associated with the lines. |
int |
getType()
The type of chart. |
PersistentLine |
hasNext()
Gets the next PersistenLine if there is more. |
void |
loadLines()
Load lines from the database |
void |
removeCurrentLine()
|
void |
reset()
Sets the currentPosition to the first line in the ArrayList |
void |
saveLines()
Saves all lines not marked as deleted into the database. |
boolean |
selectNext(boolean keepSelected)
|
void |
selectNextEnd()
|
boolean |
selectPrevious(boolean keepSelected)
|
void |
setActive(PersistentLine pL)
Updates the position of the active line. |
void |
setTickerId(TickerID id)
Sets the TickerID |
void |
setType(boolean isWeekly)
Sets the type of chart theese lines are valid for |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Lines(TickerID id, boolean isWeekly)
id
- os the - TickerID that this Lines is associated withisWeekly
- - if the lines are for a weekly chart or notMethod Detail |
public void reset()
public void changeCurrentLine(int i)
i
- integer to add to the currentPositionpublic PersistentLine hasNext()
public PersistentLine getActive()
public void setActive(PersistentLine pL)
pL
- the PersistentLine that shall be updatedpublic void addLine(PersistentLine pL)
public void removeCurrentLine()
public boolean selectNext(boolean keepSelected)
keepSelected
- if false all selection is reset.
public boolean selectPrevious(boolean keepSelected)
keepSelected
- if false all selection is reset.
public void selectNextEnd()
public void deleteActiveSelection()
public void loadLines()
public void saveLines()
public TickerID getTickerId()
public int getType()
public void setTickerId(TickerID id)
id
- The TickerIdpublic void setType(boolean isWeekly)
isWeekly
- boolean that indicates of this is lines for a weekly chart or not.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |