Line
Link Here
|
0 |
-- Base (BASE) |
0 |
++ Locally Modified (Based On LOCAL) |
Lines 1086-1092
Link Here
|
1086 |
|
1086 |
|
1087 |
} |
1087 |
} |
1088 |
|
1088 |
|
|
|
1089 |
/* Utility class that provides a Chain object along with its name to the widget. |
1090 |
* |
1091 |
*/ |
1092 |
public static final class ChainProvider{ |
1093 |
|
1094 |
private String name = ""; |
1095 |
|
1089 |
/** |
1096 |
/** |
|
|
1097 |
* Get the chain name |
1098 |
* |
1099 |
* @return the chain name |
1100 |
*/ |
1101 |
public String getName() { |
1102 |
return name; |
1103 |
} |
1104 |
|
1105 |
/** |
1106 |
* Set the chain name |
1107 |
* |
1108 |
* @param name new chain name |
1109 |
*/ |
1110 |
public void setName(String name) { |
1111 |
this.name = name; |
1112 |
} |
1113 |
|
1114 |
private Chain chain; |
1115 |
|
1116 |
/** |
1117 |
* Get the chain object provided by this provider |
1118 |
* |
1119 |
* @return the value of chain |
1120 |
*/ |
1121 |
public Chain getChain() { |
1122 |
return chain; |
1123 |
} |
1124 |
|
1125 |
/** |
1126 |
* Set the chain provided by this provider |
1127 |
* |
1128 |
* @param chain new value of chain |
1129 |
*/ |
1130 |
public void setChain(Chain chain) { |
1131 |
this.chain = chain; |
1132 |
} |
1133 |
|
1134 |
/** |
1135 |
* Constructor without parameter. Creates a non initialized provider instance. |
1136 |
* Set the chain name and the Chain instance before using it. |
1137 |
*/ |
1138 |
public ChainProvider() { |
1139 |
} |
1140 |
|
1141 |
/** |
1142 |
* Creates a non fully initialized provider instance. |
1143 |
* Set the chain name before using it. |
1144 |
* @param chain Chain instance provided by this provider |
1145 |
*/ |
1146 |
public ChainProvider(Chain chain) { |
1147 |
this.chain = chain; |
1148 |
} |
1149 |
|
1150 |
/** |
1151 |
* Creates a fully initialized Chain provider instance. |
1152 |
* @param name name of the chain |
1153 |
* @param chain chain instance |
1154 |
*/ |
1155 |
public ChainProvider(String name,Chain chain) { |
1156 |
this.name = name; |
1157 |
this.chain = chain; |
1158 |
} |
1159 |
} |
1160 |
/** |
1090 |
* Represents an widget event. |
1161 |
* Represents an widget event. |
1091 |
*/ |
1162 |
*/ |
1092 |
public static interface WidgetEvent { |
1163 |
public static interface WidgetEvent { |