From 740348b6c4a222d97f77dfd2aa9856dc2c57337a Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 15 Nov 2017 15:16:40 +0100 Subject: [PATCH] Added Separator Peer (so code is consistent) --- src/dorkbox/systemTray/Separator.java | 12 ++++++++++ .../systemTray/peer/SeparatorPeer.java | 23 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 src/dorkbox/systemTray/peer/SeparatorPeer.java diff --git a/src/dorkbox/systemTray/Separator.java b/src/dorkbox/systemTray/Separator.java index f4f5e63..894941e 100644 --- a/src/dorkbox/systemTray/Separator.java +++ b/src/dorkbox/systemTray/Separator.java @@ -15,6 +15,8 @@ */ package dorkbox.systemTray; +import dorkbox.systemTray.peer.SeparatorPeer; + /** * This represents a common menu-spacer entry, that is cross platform in nature. *

@@ -39,4 +41,14 @@ class Separator extends Entry { Separator() { super(); } + + /** + * @param peer the platform specific implementation for all actions for this type + * @param parent the parent of this menu, null if the parent is the system tray + * @param systemTray the system tray (which is the object that sits in the system tray) + */ + public + void bind(final SeparatorPeer peer, final Menu parent, final SystemTray systemTray) { + super.bind(peer, parent, systemTray); + } } diff --git a/src/dorkbox/systemTray/peer/SeparatorPeer.java b/src/dorkbox/systemTray/peer/SeparatorPeer.java new file mode 100644 index 0000000..6898b6d --- /dev/null +++ b/src/dorkbox/systemTray/peer/SeparatorPeer.java @@ -0,0 +1,23 @@ +/* + * Copyright 2016 dorkbox, llc + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package dorkbox.systemTray.peer; + +/** + * Internal component used to bind the API to the implementation + */ +public +interface SeparatorPeer extends EntryPeer { +}