完善了widget,gtask类图,以及包图更新

pull/3/head
夏彦博 2 years ago
parent ef14e3cb62
commit 6671235f86

Binary file not shown.

@ -50,7 +50,7 @@ public class MetaData extends Task {
}
@Override
public void setContentByRemoteJSON(JSONObject js) {
public void setContentByRemoteJSON(JSONObject js) {//用远程的json
super.setContentByRemoteJSON(js);
if (getNotes() != null) {
try {
@ -64,7 +64,7 @@ public class MetaData extends Task {
}
@Override
public void setContentByLocalJSON(JSONObject js) {
public void setContentByLocalJSON(JSONObject js) {//这几个函数都是通过一部分已知的项推算其他未知的
// this function should not be called
throw new IllegalAccessError("MetaData:setContentByLocalJSON should not be called");
}

@ -64,9 +64,9 @@ public abstract class Node {
public abstract JSONObject getLocalJSONFromContent();
public abstract int getSyncAction(Cursor c);
public abstract int getSyncAction(Cursor c);//根据当前指针刷新缓冲区
public void setGid(String gid) {
public void setGid(String gid) {//定义各项简单查询操作的返回值
this.mGid = gid;
}
@ -82,7 +82,7 @@ public abstract class Node {
this.mDeleted = deleted;
}
public String getGid() {
public String getGid() {//this保证指向的还是当前的对象
return this.mGid;
}

@ -16,7 +16,7 @@
package net.micode.notes.gtask.exception;
public class ActionFailureException extends RuntimeException {
public class ActionFailureException extends RuntimeException {//异常处理程序,定义了全部可能参数下抛出错误
private static final long serialVersionUID = 4425249765923293627L;
public ActionFailureException() {

@ -14,7 +14,7 @@
* limitations under the License.
*/
package net.micode.notes.gtask.exception;
package net.micode.notes.gtask.exception;//调用完成异常处理
public class NetworkFailureException extends Exception {
private static final long serialVersionUID = 2107610287180234136L;

Loading…
Cancel
Save