forked from fanruan/design
shine
3 years ago
22 changed files with 176 additions and 107 deletions
@ -0,0 +1,17 @@
|
||||
package com.fr.design.actions.community; |
||||
|
||||
import com.fr.design.i18n.Toolkit; |
||||
import com.fr.design.login.AbstractDesignerSSO; |
||||
import com.fr.general.CloudCenter; |
||||
|
||||
public class StudyPlanAction extends AbstractDesignerSSO { |
||||
public StudyPlanAction() { |
||||
this.setName(Toolkit.i18nText("Fine-Design_Study_Plan")); |
||||
this.setSmallIcon("/com/fr/design/images/bbs/studyPlan"); |
||||
} |
||||
|
||||
@Override |
||||
public String getJumpUrl() { |
||||
return CloudCenter.getInstance().acquireUrlByKind("bbs.studyPlan", "https://edu.fanruan.com/studypath/finereport"); |
||||
} |
||||
} |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 655 B |
@ -0,0 +1,33 @@
|
||||
package com.fr.design.mainframe; |
||||
|
||||
public enum ArrangementType { |
||||
LEFT_ALIGN(0), |
||||
RIGHT_ALIGN(1), |
||||
TOP_ALIGN(2), |
||||
BOTTOM_ALIGN(3), |
||||
HORIZONTAL_CENTER_ALIGN(4), |
||||
VERTICAL_CENTER_ALIGN(5), |
||||
HORIZONTAL_AUTO_DISTRIBUTION(6), |
||||
HORIZONTAL_MANUAL_DISTRIBUTION(7), |
||||
VERTICAL_AUTO_DISTRIBUTION(8), |
||||
VERTICAL_MANUAL_DISTRIBUTION(9); |
||||
|
||||
private int type; |
||||
|
||||
ArrangementType(int type) { |
||||
this.type = type; |
||||
} |
||||
|
||||
public int getType() { |
||||
return this.type; |
||||
} |
||||
|
||||
public static ArrangementType parse(int type) { |
||||
for (ArrangementType arrangementType : ArrangementType.values()) { |
||||
if (arrangementType.getType() == type) { |
||||
return arrangementType; |
||||
} |
||||
} |
||||
return LEFT_ALIGN; |
||||
} |
||||
} |
Loading…
Reference in new issue