forked from nus-cs2103-AY2223S1/tp
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from JasonYapzx/feat-help
Add help table
- Loading branch information
Showing
5 changed files
with
115 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package seedu.pennywise.ui; | ||
|
||
import javafx.scene.text.Text; | ||
|
||
/** | ||
* Table cell for help window. | ||
*/ | ||
public class HelpWindowCell { | ||
private final Text action = new Text(); | ||
private final Text format = new Text(); | ||
private final Text example = new Text(); | ||
|
||
public HelpWindowCell() { | ||
this("", "", ""); | ||
} | ||
|
||
/** | ||
* Constructor for HelpWindowCell | ||
*/ | ||
public HelpWindowCell(String action, String format, String example) { | ||
setAction(action); | ||
setFormat(format); | ||
setExample(example); | ||
} | ||
|
||
public String getAction() { | ||
return action.getText(); | ||
} | ||
|
||
public void setAction(String fName) { | ||
action.setText(fName); | ||
} | ||
|
||
public String getFormat() { | ||
return format.getText(); | ||
} | ||
|
||
public void setFormat(String fName) { | ||
format.setText(fName); | ||
} | ||
|
||
public String getExample() { | ||
return example.getText(); | ||
} | ||
|
||
public void setExample(String fName) { | ||
example.setText(fName); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters