|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JScrollPane
net.java.sip.communicator.impl.gui.customcontrols.SCScrollPane
net.java.sip.communicator.impl.gui.main.chat.history.DatesPanel
public class DatesPanel
The DatesPanel contains the list of history dates for a contact.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JScrollPane |
|---|
JScrollPane.AccessibleJScrollPane, JScrollPane.ScrollBar |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JScrollPane |
|---|
columnHeader, horizontalScrollBar, horizontalScrollBarPolicy, lowerLeft, lowerRight, rowHeader, upperLeft, upperRight, verticalScrollBar, verticalScrollBarPolicy, viewport |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| 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 | |
|---|---|
DatesPanel(HistoryWindow historyWindow)
Creates an instance of DatesPanel. |
|
| Method Summary | |
|---|---|
void |
addDate(Date date)
Adds the given date to the list of dates. |
boolean |
containsDate(Date date)
Checks whether the given date is contained in the list of history dates. |
Date |
getDate(int index)
Returns the date at the given index. |
int |
getDatesNumber()
Returns the number of dates contained in this dates panel. |
int |
getLastSelectedIndex()
Returns the index that was last selected. |
ListModel |
getModel()
Returns the model of the contained list. |
Date |
getNextDate(Date date)
Returns the next date in the list. |
void |
removeAllDates()
Removes all dates contained in this list. |
void |
setLastSelectedIndex(int lastSelectedIndex)
Sets the last selected index. |
void |
setSelected(int index)
Selects the cell at the given index. |
void |
valueChanged(ListSelectionEvent e)
Implements the ListSelectionListener.valueChanged. |
| Methods inherited from class net.java.sip.communicator.impl.gui.customcontrols.SCScrollPane |
|---|
dispose, loadSkin, setViewportView |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DatesPanel(HistoryWindow historyWindow)
historyWindow - the parent HistoryWindow, where
this panel is contained.| Method Detail |
|---|
public int getDatesNumber()
public Date getDate(int index)
index - the index of the date in the list model
public Date getNextDate(Date date)
date - the date from which to start
public void addDate(Date date)
date - the date to addpublic void removeAllDates()
public boolean containsDate(Date date)
date - the date to search for
public void valueChanged(ListSelectionEvent e)
valueChanged in interface ListSelectionListenerpublic void setSelected(int index)
index - the index of the cell to selectpublic ListModel getModel()
public int getLastSelectedIndex()
public void setLastSelectedIndex(int lastSelectedIndex)
lastSelectedIndex - the last selected index
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||