From d99709aea15c81125650c83e2f900cf54c59d562 Mon Sep 17 00:00:00 2001 From: puem2gl9z <2777269348@qq.com> Date: Fri, 30 Aug 2024 15:38:49 +0800 Subject: [PATCH] ADD file via upload --- LeftBean.java | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 LeftBean.java diff --git a/LeftBean.java b/LeftBean.java new file mode 100644 index 0000000..983c876 --- /dev/null +++ b/LeftBean.java @@ -0,0 +1,38 @@ +package com.example.drink_order_system; + +public class LeftBean { + //记录右边列表置顶项所在的item的位置 + private int rightPosition; + private String title; + //设置是否选中,改变背景色 + private boolean isSelect; + + public LeftBean(int rightPosition, String title) { + this.rightPosition = rightPosition; + this.title = title; + } + + public boolean isSelect() { + return isSelect; + } + + public void setSelect(boolean select) { + isSelect = select; + } + + public int getRightPosition() { + return rightPosition; + } + + public void setRightPosition(int rightPosition) { + this.rightPosition = rightPosition; + } + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } +} \ No newline at end of file