• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 package ohos.devtools.views.common.customcomp;
17 
18 import ohos.devtools.datasources.utils.session.entity.SessionInfo;
19 
20 import javax.swing.JComboBox;
21 
22 /**
23  * CustomComboBox
24  *
25  * @since 2021/5/19 16:39
26  */
27 public class CustomComboBox<E> extends JComboBox {
28     private SessionInfo sessionInfo;
29 
30     private long sessionId;
31 
getSessionInfo()32     public SessionInfo getSessionInfo() {
33         return sessionInfo;
34     }
35 
setSessionInfo(SessionInfo sessionInfo)36     public void setSessionInfo(SessionInfo sessionInfo) {
37         this.sessionInfo = sessionInfo;
38     }
39 
getSessionId()40     public long getSessionId() {
41         return sessionId;
42     }
43 
setSessionId(long sessionId)44     public void setSessionId(long sessionId) {
45         this.sessionId = sessionId;
46     }
47 }
48