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
Add text-image control and separate Edit/View contact
[jvcard.git]
/
src
/
be
/
nikiroo
/
jvcard
/
tui
/
KeyAction.java
diff --git
a/src/be/nikiroo/jvcard/tui/KeyAction.java
b/src/be/nikiroo/jvcard/tui/KeyAction.java
index e6aad034a2627da68f1961b18c2d82f879fdbe28..a95835eb28b77468b758b6b53516bf0e481bda7f 100644
(file)
--- a/
src/be/nikiroo/jvcard/tui/KeyAction.java
+++ b/
src/be/nikiroo/jvcard/tui/KeyAction.java
@@
-1,5
+1,7
@@
package be.nikiroo.jvcard.tui;
package be.nikiroo.jvcard.tui;
+import java.io.File;
+
import be.nikiroo.jvcard.Card;
import be.nikiroo.jvcard.Contact;
import be.nikiroo.jvcard.Data;
import be.nikiroo.jvcard.Card;
import be.nikiroo.jvcard.Contact;
import be.nikiroo.jvcard.Data;
@@
-24,12
+26,32
@@
public class KeyAction {
* @author niki
*
*/
* @author niki
*
*/
- enum Mode {
- NONE, MOVE, BACK, HELP,
CONTACT_LIST, CONTACT_DETAILS, SWICTH_FORMAT
,
+
public
enum Mode {
+ NONE, MOVE, BACK, HELP,
FILE_LIST, CONTACT_LIST, CONTACT_DETAILS_RAW, CONTACT_DETAILS, EDIT_DETAIL, DELETE_CONTACT, SAVE_CARD
,
}
}
- enum DataType {
- CONTACT, CARD, DATA, NONE
+ public enum DataType {
+ /**
+ * A list of Card {@link File}s.
+ */
+ CARD_FILES,
+ /**
+ * Contains a list of contacts.
+ */
+ CARD,
+ /**
+ * All the known informations about a specific contact person or
+ * company.
+ */
+ CONTACT,
+ /**
+ * An information about a contact.
+ */
+ DATA,
+ /**
+ * Empty.
+ */
+ NONE
}
private StringId id;
}
private StringId id;
@@
-124,14
+146,14
@@
public class KeyAction {
return null;
}
return null;
}
- // override this one if needed
+ // override this one if needed
, DO NOT process here as it will be call a lot
public Object getObject() {
return null;
}
/**
* The method which is called when the action is performed. You can subclass
public Object getObject() {
return null;
}
/**
* The method which is called when the action is performed. You can subclass
- * it if you want to customi
z
e the action (by default, it just accepts the
+ * it if you want to customi
s
e the action (by default, it just accepts the
* mode change (see {@link KeyAction#getMode}).
*
* @return false to cancel mode change
* mode change (see {@link KeyAction#getMode}).
*
* @return false to cancel mode change