|
|
@ -8,22 +8,26 @@ public enum HyperlinkTargetFrame { |
|
|
|
|
|
|
|
|
|
|
|
private String name; |
|
|
|
private String name; |
|
|
|
private int index; |
|
|
|
private int index; |
|
|
|
|
|
|
|
private static HyperlinkTargetFrame[] arrayOfValues; |
|
|
|
|
|
|
|
|
|
|
|
HyperlinkTargetFrame(String name, int index) { |
|
|
|
HyperlinkTargetFrame(String name, int index) { |
|
|
|
this.name = name; |
|
|
|
this.name = name; |
|
|
|
this.index = index; |
|
|
|
this.index = index; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static String getName(int index) { |
|
|
|
public static HyperlinkTargetFrame parse(int index) { |
|
|
|
|
|
|
|
if (arrayOfValues == null) { |
|
|
|
|
|
|
|
arrayOfValues = HyperlinkTargetFrame.values(); |
|
|
|
|
|
|
|
} |
|
|
|
for (HyperlinkTargetFrame hyperlinkTargetFrame : HyperlinkTargetFrame.values()) { |
|
|
|
for (HyperlinkTargetFrame hyperlinkTargetFrame : HyperlinkTargetFrame.values()) { |
|
|
|
if (hyperlinkTargetFrame.getIndex() == index) { |
|
|
|
if (hyperlinkTargetFrame.getIndex() == index) { |
|
|
|
return hyperlinkTargetFrame.name; |
|
|
|
return hyperlinkTargetFrame; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return null; |
|
|
|
return BLANK_FRAME; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public int getIndex() { |
|
|
|
public int getIndex() { |
|
|
|
return index; |
|
|
|
return index; |
|
|
|
} |
|
|
|
} |
|
|
|