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}.
*
abstract public List<KeyAction> getKeyBindings();
/**
- * The title to display instead 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
*/
- abstract public String getTitle();
+ public String getTitle() {
+ return null;
+ }
/**
* Returns an error message ready to be displayed if we should ask something
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();
+ }
}