git://git.nikiroo.be
/
jvcard.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Java 1.6+ compatibility (at least) instead of 1.8+ only
[jvcard.git]
/
src
/
be
/
nikiroo
/
jvcard
/
tui
/
panes
/
MainContent.java
diff --git
a/src/be/nikiroo/jvcard/tui/panes/MainContent.java
b/src/be/nikiroo/jvcard/tui/panes/MainContent.java
index 0bc9b29fce7bc091d0f3696534776b640b340b34..68230d490eeb98e3bb612f323fd91533f73caeef 100644
(file)
--- a/
src/be/nikiroo/jvcard/tui/panes/MainContent.java
+++ b/
src/be/nikiroo/jvcard/tui/panes/MainContent.java
@@
-29,13
+29,6
@@
abstract public class MainContent extends Panel {
setLayoutManager(layout);
}
setLayoutManager(layout);
}
- /**
- * The {@link KeyAction#Mode} that links to this {@link MainContent}.
- *
- * @return the linked mode
- */
- abstract public KeyAction.Mode getMode();
-
/**
* The kind of data displayed by this {@link MainContent}.
*
/**
* The kind of data displayed by this {@link MainContent}.
*
@@
-51,12
+44,14
@@
abstract public class MainContent extends Panel {
abstract public List<KeyAction> getKeyBindings();
/**
abstract public List<KeyAction> getKeyBindings();
/**
- * The title to display in
stead of
the application name, or NULL for the
+ * The title to display in
addition to
the application name, or NULL for the
* default application name.
*
* @return the title or NULL
*/
* default application name.
*
* @return the title or NULL
*/
- abstract public String getTitle();
+ public String getTitle() {
+ return null;
+ }
/**
* Returns an error message ready to be displayed if we should ask something
/**
* Returns an error message ready to be displayed if we should ask something
@@
-92,4
+87,12
@@
abstract public class MainContent extends Panel {
public int getCount() {
return -1;
}
public int getCount() {
return -1;
}
+
+ /**
+ * Refresh the display according to the actual data (this method should be
+ * called when the data changed).
+ */
+ public void refreshData() {
+ invalidate();
+ }
}
}