forked from hmkcode/Java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathButton.java
More file actions
31 lines (20 loc) · 480 Bytes
/
Button.java
File metadata and controls
31 lines (20 loc) · 480 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package com.hmkcode;
public class Button {
private OnClickListener onClickListener;
private String name;
public void click(){
this.onClickListener.onClick(this);
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public OnClickListener getOnClickListener() {
return onClickListener;
}
public void setOnClickListener(OnClickListener onClickListener) {
this.onClickListener = onClickListener;
}
}